prevent bash from intrepreting DoW as octal

This commit is contained in:
Vincent Riquer 2015-12-08 09:22:27 +01:00
parent 5f44b890c7
commit 7f2f5b05c1

View File

@ -247,7 +247,7 @@ rotateBackup() {
cp -al "$SNAPSHOT_RW/$NAME/daily.1" \
"$SNAPSHOT_RW/$NAME/weekly.0"
fi
if (( MONTH_KEEP && $(date +%d) == 1))
if (( MONTH_KEEP && $(date +%e) == 1))
then
if [ -d "$SNAPSHOT_RW/$NAME/monthly.${MONTH_KEEP}" ]
then