diff --git a/scripts/utils.sh b/scripts/utils.sh index 392a64f..722ebe6 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -1,7 +1,7 @@ #!/bin/sh function job_log() { - when="$(date +[%d/%m/%Y %H:%M:%S])" + when="$(date '+[%d/%m/%Y %H:%M:%S]')" what="$1" echo "$when $what" >> /var/log/jobs.log }