aadlani/backup-manager

Day number interpreted as Octal

aadlani opened this issue · 0 comments

in line 87:

weekNum=$(($archiveDay/7)) 

if archiveDay is "09" it is treated as a base-8 number which is invalid and script fails here. Solution for that is to explicitly say that it is a base-10 number.

weekNum=$(((10#$archiveDay)/7))