Add return code to local deb install failure
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user