From: BernieO Date: Sun, 24 Sep 2017 16:03:10 +0000 (+0200) Subject: fix double closing curly bracket X-Git-Tag: v1.0.0~27^2 X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/commitdiff_plain/b19ec146d12b55e2aba8662dc599309c3c07260f?ds=inline;hp=--cc fix double closing curly bracket --- b19ec146d12b55e2aba8662dc599309c3c07260f 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}"