rohit-clootrack / linting-test

Unnecessary use of $ / ${} with arithmetic variable SH-2004
Anti-pattern
Critical
a year agoa year old
$/${} is unnecessary on arithmetic variables
 6    local seconds="${1}"
 7    local d=$(($(date +%s) + "${seconds}"))
 8    while [ "$d" -ge `date +%s` ]; do
 9        echo -ne "$(date -u --date @$(($d - `date +%s`)) +%H:%M:%S)\r";10        sleep 0.1
11    done
12}