Fix: file test if there are no previous backup

This commit is contained in:
Blade of Darkness 2021-10-07 23:20:48 +02:00
parent f5f15dc887
commit 0ca7843206

View File

@ -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