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" \
|
cp -al "$SNAPSHOT_RW/$NAME/daily.1" \
|
||||||
"$SNAPSHOT_RW/$NAME/weekly.0"
|
"$SNAPSHOT_RW/$NAME/weekly.0"
|
||||||
fi
|
fi
|
||||||
if (( MONTH_KEEP && $(date +%d) == 1))
|
if (( MONTH_KEEP && $(date +%e) == 1))
|
||||||
then
|
then
|
||||||
if [ -d "$SNAPSHOT_RW/$NAME/monthly.${MONTH_KEEP}" ]
|
if [ -d "$SNAPSHOT_RW/$NAME/monthly.${MONTH_KEEP}" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user