소스 검색

less than

UltimateByte 9 년 전
부모
커밋
0eee074edb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lgsm/functions/command_backup.sh

+ 1 - 1
lgsm/functions/command_backup.sh

@@ -155,7 +155,7 @@ if [ -n "${maxbackupdays}" ]&&[ -n "${maxbackups}" ]; then
 			# Clear over quota backups
 			#find "${backupdir}"/ -type f -printf '%T@ %p\n' | sort -rn | tail "${backupquotadiff}" | cut -f2- -d" "
 		# If maxbackupdays is used over maxbackups
-		elif [ "${backupquotadiff}" -gt "${backupsoudatedcount}" ]; then
+		elif [ "${backupquotadiff}" -lt "${backupsoudatedcount}" ]; then
 			# Display how many backups will be cleared
 			fn_print_info_nl "${backupsoudatedcount} backups older than ${maxbackupdays} days will be cleared."
 			fn_script_log "${backupsoudatedcount} backups older than ${maxbackupdays} days will be cleared"