From b19ec146d12b55e2aba8662dc599309c3c07260f Mon Sep 17 00:00:00 2001 From: BernieO Date: Sun, 24 Sep 2017 18:03:10 +0200 Subject: [PATCH] fix double closing curly bracket --- NextcloudBackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NextcloudBackup.sh b/NextcloudBackup.sh index a386464..ea817e4 100644 --- a/NextcloudBackup.sh +++ b/NextcloudBackup.sh @@ -128,7 +128,7 @@ if [ ${maxNrOfBackups} != 0 ] then nrOfBackups=$(ls -l ${backupMainDir} | grep -c ^d) - if [ ${maxNrOfBackups} > ${nrOfBackups}} ] + if [ ${maxNrOfBackups} > ${nrOfBackups} ] then echo "Removing old backups..." ls -t ${backupMainDir} | tail -$(( nrOfBackups - maxNrOfBackups )) | while read dirToRemove; do @@ -142,4 +142,4 @@ fi echo echo "DONE!" -echo "Backup created: ${backupdir}" \ No newline at end of file +echo "Backup created: ${backupdir}" -- 2.34.1