prevent bash from intrepreting DoW as octal
This commit is contained in:
parent
5f44b890c7
commit
7f2f5b05c1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user