Fix issue with bash interpreting numbers as octals
This commit is contained in:
parent
19ab178b75
commit
bb61cf57b0
@ -16,7 +16,7 @@ DIRNAME=$(dirname $SCRIPT)
|
||||
# -----------------------------------------------------------------------------
|
||||
# Run only if it's the first week of the month.
|
||||
# -----------------------------------------------------------------------------
|
||||
day_of_month=`date '+%d'`
|
||||
day_of_month=`date '+%d' | bc`
|
||||
if (( $day_of_month > 7 ))
|
||||
then
|
||||
echo -e "${CYAN}[${SCRIPT}] No B2 backup this week ${NC}"
|
||||
|
Reference in New Issue
Block a user