From b41070bf7d66f0a7fdc71551677ce45b7e448b25 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Fri, 24 Sep 2021 20:06:03 +0200 Subject: [PATCH] Fix type of variable --- roles/shell/files/usr/local/bin/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/shell/files/usr/local/bin/backup b/roles/shell/files/usr/local/bin/backup index 642fab7..28ea697 100644 --- a/roles/shell/files/usr/local/bin/backup +++ b/roles/shell/files/usr/local/bin/backup @@ -41,7 +41,7 @@ chown root:sudo $BACKUPS/$DATE*.tgz chmod 640 $BACKUPS/*.tgz # Remove dumps and the previous backup once there is another. -if [ $TYPE -eq "full" ] && [ -e $LEVEL0 ] +if [ $TYPE = full ] && [ -e $LEVEL0 ] then rm $LEVEL0 $BACKUPS/*incremental.tgz fi