]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/crontab.d/setup.sh
Always use single quotes for printf format string
[config/dotfiles.git] / shell / crontab.d / setup.sh
index 46ebb560a3f661a1a67b7b34bb224d1d9e52d6fa..603e3019238611eff636ce9542a133bcdcf0e800 100755 (executable)
@@ -50,7 +50,7 @@ echo '###################################'  >"$CRONTAB"
 echo "$HEADER_WARNING"                     >>"$CRONTAB"
 echo '###################################' >>"$CRONTAB"
 echo >>"$CRONTAB"
-printf "# It was generated from '%s/*' on %s." \
+printf '# It was generated from "%s/*" on %s.' \
     "$DIRECTORY" "`LANG=C date '+%a, %d %b %Y %H:%M:%S %z'`" >>"$CRONTAB"
 
 # Enforce C sort order.
@@ -64,7 +64,7 @@ for file in "$DIRECTORY"/crontab.*; do
         break
     fi
 
-    printf "Found '%s'.\n" "$file"
+    printf 'Found "%s".\n' "$file"
 
     printf '\n\n## %s:\n' "$file" >>"$CRONTAB"