chore: nicer formatting.

This commit is contained in:
Robert Wlodarczyk 2022-07-16 10:45:41 -07:00
parent 08bbceff95
commit e69b276707

View File

@ -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}")