fix: update_system_package_lists return 1 on fail rather than exiting

This commit is contained in:
Cameron Ryder
2023-06-11 22:06:24 -04:00
parent 7082aea22b
commit bbc341b35d

View File

@@ -381,7 +381,7 @@ function update_system_package_lists() {
if ! sudo apt-get update --allow-releaseinfo-change &>/dev/null; then if ! sudo apt-get update --allow-releaseinfo-change &>/dev/null; then
log_error "Failure while updating package lists!" log_error "Failure while updating package lists!"
if [[ ! ${silent} == "true" ]]; then error_msg "Updating package lists failed!"; fi if [[ ! ${silent} == "true" ]]; then error_msg "Updating package lists failed!"; fi
exit 1 return 1
else else
log_info "Package lists updated successfully" log_info "Package lists updated successfully"
if [[ ! ${silent} == "true" ]]; then status_msg "Updated package lists."; fi if [[ ! ${silent} == "true" ]]; then status_msg "Updated package lists."; fi