mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 13:40:17 +00:00
Fix: file test if there are no previous backup
This commit is contained in:
@@ -8,7 +8,7 @@ DUMPS=7
|
||||
LEVEL0=$(find $BACKUPS -name "*full.tgz" | sort | tail -n1)
|
||||
INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l)
|
||||
|
||||
if [ -e $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
||||
if [ ! -z $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
||||
then
|
||||
TYPE=incremental
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user