From 2fa72e3087fbd4fdae7c4d66bbb95ed0216dc1ad Mon Sep 17 00:00:00 2001 From: Valentyn Shtronda <13869060+valiko-ua@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:29:13 +0300 Subject: [PATCH] fix #95: report installation errors --- ubuntu-mainline-kernel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ubuntu-mainline-kernel.sh b/ubuntu-mainline-kernel.sh index da24892..40913d3 100755 --- a/ubuntu-mainline-kernel.sh +++ b/ubuntu-mainline-kernel.sh @@ -1009,7 +1009,11 @@ EOF if [ $do_install -eq 1 ]; then if [ ${#debs[@]} -gt 0 ]; then log "Installing ${#debs[@]} packages" - $sudo dpkg -i "${debs[@]}" >$debug_target 2>&1 + if ! $sudo dpkg -i "${debs[@]}" >$debug_target 2>&1; then + err "Installation failed." + err "Uninstall this kernel and rerun with --debug to see error details." + exit 4 + fi else warn "Did not find any .deb files to install" fi