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}")
|
COMMENT=$(jq -r .["$i"].comment "${CONFIG}")
|
||||||
if [ "${COMMENT}" != "null" ]; then
|
if [ "${COMMENT}" != "null" ]; then
|
||||||
|
COMMENT=" ${COMMENT}"
|
||||||
echo "#${COMMENT}" >> ${CRONTAB_FILE}
|
echo "#${COMMENT}" >> ${CRONTAB_FILE}
|
||||||
else
|
else
|
||||||
# Reset COMMENT to empty rather than keep the 'null' value.
|
# Reset COMMENT to empty rather than keep the 'null' value.
|
||||||
COMMENT=
|
COMMENT=" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT_NAME=$(jq -r .["$i"].name "${CONFIG}")
|
SCRIPT_NAME=$(jq -r .["$i"].name "${CONFIG}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user