Change documentation showing seconds in cron schedule in error

This commit is contained in:
will Farrell
2017-10-23 09:45:24 -06:00
parent d83f0b3a1b
commit 61ef1db4bf
2 changed files with 10 additions and 10 deletions

View File

@ -81,25 +81,25 @@ make_cmd() {
parse_schedule() {
case $1 in
"@yearly")
echo "0 0 0 1 1 *"
echo "0 0 1 1 *"
;;
"@annually")
echo "0 0 0 1 1 *"
echo "0 0 1 1 *"
;;
"@monthly")
echo "0 0 0 1 * *"
echo "0 0 1 * *"
;;
"@weekly")
echo "0 0 0 * * 0"
echo "0 0 * * 0"
;;
"@daily")
echo "0 0 0 * * *"
echo "0 0 * * *"
;;
"@midnight")
echo "0 0 0 * * *"
echo "0 0 * * *"
;;
"@hourly")
echo "0 0 * * * *"
echo "0 * * * *"
;;
"@every")
TIME=$2
@ -119,7 +119,7 @@ parse_schedule() {
TOTAL=$(($TOTAL + ${D::-1} * 60 * 24))
fi
echo "*/${TOTAL} * * * * *"
echo "*/${TOTAL} * * * *"
;;
*)
echo "${@}"