From 00e683d102c9f6b40b6bcede0dd96a34b9827940 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 13 May 2020 20:27:04 +0100 Subject: [PATCH] aptosaurus: fix logic --- aptosaurus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aptosaurus.sh b/aptosaurus.sh index dec750e..44d4ef2 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -132,7 +132,7 @@ task_update() { package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)"; task_end "${exit_code}"; - if [[ "${package_count_before}" -eq "${package_count_after}" ]] || [[ ! -z "${FORCE_UPDATE}" ]]; then + if [[ "${package_count_before}" -eq "${package_count_after}" ]] && [[ -z "${FORCE_UPDATE}" ]]; then echo "No new packages to process."; exit 0; else