mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-07-03 00:58:05 +02:00
fix: SC2004 shellcheck fixes.
This commit is contained in:
@ -162,13 +162,13 @@ parse_schedule() {
|
|||||||
D=$(echo "$TIME" | grep -o '[0-9]\+d')
|
D=$(echo "$TIME" | grep -o '[0-9]\+d')
|
||||||
|
|
||||||
if [ -n "${M}" ]; then
|
if [ -n "${M}" ]; then
|
||||||
TOTAL=$(($TOTAL + ${M::-1}))
|
TOTAL=$((TOTAL + ${M::-1}))
|
||||||
fi
|
fi
|
||||||
if [ -n "${H}" ]; then
|
if [ -n "${H}" ]; then
|
||||||
TOTAL=$(($TOTAL + ${H::-1} * 60))
|
TOTAL=$((TOTAL + ${H::-1} * 60))
|
||||||
fi
|
fi
|
||||||
if [ -n "${D}" ]; then
|
if [ -n "${D}" ]; then
|
||||||
TOTAL=$(($TOTAL + ${D::-1} * 60 * 24))
|
TOTAL=$((TOTAL + ${D::-1} * 60 * 24))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "*/${TOTAL} * * * *"
|
echo "*/${TOTAL} * * * *"
|
||||||
|
Reference in New Issue
Block a user