diff --git a/bundles/apt/files/upgrade-and-reboot b/bundles/apt/files/upgrade-and-reboot index 4f5d400..5435f31 100644 --- a/bundles/apt/files/upgrade-and-reboot +++ b/bundles/apt/files/upgrade-and-reboot @@ -34,11 +34,19 @@ trap 'rm -f "$softlockdir"/UNATTENDED' EXIT apt-get update +ret=$? +if (( $ret != 0 )) +then + echo "apt-get update exited $ret" + exit 1 +fi + DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef dist-upgrade ret=$? if (( $ret != 0 )) then + echo "apt-get dist-upgrade exited $ret" exit 1 fi