mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-11-06 04:05:38 +00:00
Fix: file test if there are no previous backup
This commit is contained in:
1 parent
f5f15dc887
commit
0ca7843206
1 file changed
+1
-1
@@ -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