mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-05-01 10:39:59 +02:00
chore: nicer formatting.
This commit is contained in:
parent
08bbceff95
commit
e69b276707
@ -201,10 +201,11 @@ function build_crontab() {
|
||||
|
||||
COMMENT=$(jq -r .["$i"].comment "${CONFIG}")
|
||||
if [ "${COMMENT}" != "null" ]; then
|
||||
COMMENT=" ${COMMENT}"
|
||||
echo "#${COMMENT}" >> ${CRONTAB_FILE}
|
||||
else
|
||||
# Reset COMMENT to empty rather than keep the 'null' value.
|
||||
COMMENT=
|
||||
COMMENT=" "
|
||||
fi
|
||||
|
||||
SCRIPT_NAME=$(jq -r .["$i"].name "${CONFIG}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user