We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b65fbd1 commit 2dfaa88Copy full SHA for 2dfaa88
1 file changed
bin/v-change-cron-job
@@ -2,7 +2,7 @@
2
# info: change cron job
3
# options: USER JOB MIN HOUR DAY MONTH WDAY COMMAND
4
#
5
-# example: v-change-cron-job admin 7 * * * * * * /usr/bin/uptime
+# example: v-change-cron-job admin 7 * * * * * /usr/bin/uptime
6
7
# This function is used for changing existing job. It fully replace job
8
# parameters with new one but with same id.
@@ -54,7 +54,7 @@ time=$(echo "$time_n_date" | cut -f 1 -d \ )
54
date=$(echo "$time_n_date" | cut -f 2 -d \ )
55
56
# Concatenating cron string
57
-command=$(echo $command | sed -e "s/'/%quote%/g")
+command=$(echo "$command" | sed -e "s/'/%quote%/g")
58
str="JOB='$job' MIN='$min' HOUR='$hour' DAY='$day' MONTH='$month' WDAY='$wday'"
59
str="$str CMD='$command' SUSPENDED='no' TIME='$time' DATE='$date'"
60
0 commit comments