From ebded3049a9081769f05e67a5f6802adf906e6ac Mon Sep 17 00:00:00 2001 From: skybeam Date: Sun, 15 Jan 2023 22:31:02 +0000 Subject: [PATCH] Update 'ccollect' --- ccollect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccollect b/ccollect index 5aaefe2..86acec5 100755 --- a/ccollect +++ b/ccollect @@ -779,7 +779,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do if [ "${remove}" -gt 0 ]; then _techo "Removing ${remove} backup(s)..." - if [ -z "${ls_rm_exclude}" -o ${c_interval} -le 0 ]; then + if [ -z "${ls_rm_exclude}" -o ${c_interval} -eq 0 ]; then # shellcheck disable=SC2010 ls -${TSORT}1r | grep "^${INTERVAL}\\." | head -n "${remove}" > "${TMP}" || \ _exit_err "Listing old backups failed" @@ -796,7 +796,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do # # Skip backup of this source if interval is zero. # - if [ ${c_interval} -le 0 ]; then + if [ ${c_interval} -eq 0 ]; then _techo "Skipping backup for this interval." exit 0 fi