echo "$HEADER_WARNING" >> "$CRONTAB"
echo "###################################" >> "$CRONTAB"
echo >> "$CRONTAB"
-echo "# It was generated from '$DIRECTORY/*' on `date -R`." >> "$CRONTAB"
+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.
LC_ALL=C
break
fi
- echo "Found '$file'."
+ printf "Found '%s'.\n" "$file"
- echo >> "$CRONTAB"
- echo >> "$CRONTAB"
- echo "## $file:" >> "$CRONTAB"
+ printf '\n\n## %s:\n' "$file" >>"$CRONTAB"
# Strip licenses, multiple empty lines and fix $HOME variables in PATH
# (cron doesn't expand variables).