aptosaurus: add FORCE_UPDATE override

This commit is contained in:
Starbeamrainbowlabs 2020-05-13 20:23:21 +01:00
parent 9b14a99309
commit efe6d55913
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -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}" ]]; then
if [[ "${package_count_before}" -eq "${package_count_after}" ]] || [[ ! -z "${FORCE_UPDATE}" ]]; then
echo "No new packages to process.";
exit 0;
else