bin:timetracking: Remove padding 0 prefix

Remove a potential padding `0` as prefix as the number is then
recognized as an octal number.
This commit is contained in:
2022-02-24 17:37:29 +01:00
parent 1be73d5e5a
commit a49bc5f1b5

View File

@@ -48,7 +48,7 @@ for week in "${!WEEKS[@]}"; do
mins=$(( (time % (60 * 60)) / 60 ))
# last 2 weeks are modifiable
(( week >= EARLIEST_MOD_WEEK )) && modifiable="*" || modifiable=" "
(( ${week#0} >= EARLIEST_MOD_WEEK )) && modifiable="*" || modifiable=" "
# 20h limit
(( time <= 72000 )) && warn= || warn=" !!"