Add return code to local deb install failure

This commit is contained in:
2024-11-04 12:02:56 -05:00
parent 76370a8be8
commit 98f898f0e3

View File

@@ -495,7 +495,7 @@ install_package() {
# Install packages if any need installation
if [[ ${#pkg_array[@]} -gt 0 ]]; then
if ! "${PKG_INSTALL[@]}" "${install_flags[@]}" "${pkg_array[@]}"; then
(( silent )) || err "Failed to install ${pkg_array[*]}."
((silent)) || err "Failed to install ${pkg_array[*]}"
return 1
fi
fi
@@ -887,6 +887,8 @@ install_mc_deb() {
if ask_ok "Remove source DEB and retry"; then
execute rm -f "$MC_DEB"
exec "$SCRIPT_PATH" "$@" "--no-update"
else
return 1
fi
fi
}