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:
@@ -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=" !!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user