From bbc341b35dc9022b6acb8dceed05b339a17a4ee0 Mon Sep 17 00:00:00 2001 From: Cameron Ryder Date: Sun, 11 Jun 2023 22:06:24 -0400 Subject: [PATCH] fix: update_system_package_lists return 1 on fail rather than exiting --- scripts/utilities.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 7081876..f0ff659 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -381,7 +381,7 @@ function update_system_package_lists() { if ! sudo apt-get update --allow-releaseinfo-change &>/dev/null; then log_error "Failure while updating package lists!" if [[ ! ${silent} == "true" ]]; then error_msg "Updating package lists failed!"; fi - exit 1 + return 1 else log_info "Package lists updated successfully" if [[ ! ${silent} == "true" ]]; then status_msg "Updated package lists."; fi