bundles/apt: fix statusfile output of unattended upgrades
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-21 18:07:01 +01:00
parent 7631ff9a5e
commit 1d450b9829
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 3 deletions

View file

@ -41,10 +41,12 @@ trap 'rm -f "$softlockdir"/UNATTENDED' EXIT
DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef dist-upgrade
)
ret=$?
echo "apt-get dist-upgrade exited $ret"
echo "$ret" > "$statusfile"
if (( $ret != 0 ))
then
echo "apt-get dist-upgrade exited $ret"
echo "$ret" > "$statusfile"
exit 1
fi