Check for updates does check for the specific return code from apt-get

Some failures in docker, like trying to run apt-get in a scratch
container, will produce other return codes, like 125.
master
meskio 3 years ago
parent 9a69a0a8ad
commit b987cfc79f
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 2
      check_updates.run

@ -8,7 +8,7 @@ do
fi
docker run --entrypoint /bin/bash -u root {{ registry_domain }}/$image -c "apt-get update; apt-get upgrade --assume-no"
if [ $? -ne 0 ]
if [ $? -eq 1 ]
then
build_image $image
fi

Loading…
Cancel
Save