fix: SC2004 shellcheck fixes.

This commit is contained in:
Robert Wlodarczyk 2022-07-16 08:14:30 -07:00
parent 9701554b3c
commit 82875aba6e

View File

@ -162,13 +162,13 @@ parse_schedule() {
D=$(echo "$TIME" | grep -o '[0-9]\+d')
if [ -n "${M}" ]; then
TOTAL=$(($TOTAL + ${M::-1}))
TOTAL=$((TOTAL + ${M::-1}))
fi
if [ -n "${H}" ]; then
TOTAL=$(($TOTAL + ${H::-1} * 60))
TOTAL=$((TOTAL + ${H::-1} * 60))
fi
if [ -n "${D}" ]; then
TOTAL=$(($TOTAL + ${D::-1} * 60 * 24))
TOTAL=$((TOTAL + ${D::-1} * 60 * 24))
fi
echo "*/${TOTAL} * * * *"