From 82875aba6e09ab8a0d777e7aa2aec0910beccef4 Mon Sep 17 00:00:00 2001 From: Robert Wlodarczyk Date: Sat, 16 Jul 2022 08:14:30 -0700 Subject: [PATCH] fix: SC2004 shellcheck fixes. --- docker-entrypoint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-entrypoint b/docker-entrypoint index ef27cf9..e3caa03 100755 --- a/docker-entrypoint +++ b/docker-entrypoint @@ -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} * * * *"