File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ elif [ -e /etc/debian_version ]; then
2424 set -e
2525 set -o pipefail
2626 # shellcheck disable=SC2034
27- apt_get_update_output=" $( apt-get -q update 2>&1 ) "
28- apt_get_upgrade_output=" $( LANG=" C" apt-get -s upgrade 2>&1 ) "
27+ apt_get_update_output=" $( apt-get -q update 2>&1 ) " || { echo " $apt_get_update_output " >&2 ; exit 1 ; }
28+ apt_get_upgrade_output=" $( LANG=" C" apt-get -s upgrade 2>&1 ) " || { echo " $apt_get_upgrade_output " >&2 ; exit 1 ; }
2929 exit_code=" $? "
3030 # shellcheck disable=SC2266
3131 echo " $apt_get_upgrade_output " | awk " /^Inst/{ print $2 }" | [ " $( wc -L) " -eq 0 ] && echo " true" || echo " false"
32+ echo " $apt_get_update_output " >&2
33+ echo " $apt_get_upgrade_output " >&2
3234elif [ -e /etc/arch-release ]; then
3335 # # Archlinux
3436 checkupdates > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments