]> git.p6c8.net - nextcloud-backup-restore.git/blobdiff - NextcloudBackup.sh
Merge pull request #1 from BernieO/patch-1
[nextcloud-backup-restore.git] / NextcloudBackup.sh
index 469d9d19ed0cddfed69847115bff5e97efa4f455..ea817e49cabd6141720bfadf2bad66d44d730cc4 100644 (file)
@@ -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

patrick-canterino.de