aptosaurus: fix logic

This commit is contained in:
Starbeamrainbowlabs 2020-05-13 20:27:04 +01:00
parent d057a9cea7
commit 00e683d102
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -132,7 +132,7 @@ task_update() {
package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)"; package_count_after="$(find ${dir_repo} -name "*.deb" | wc -l)";
task_end "${exit_code}"; 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."; echo "No new packages to process.";
exit 0; exit 0;
else else