1
0
docker-jumpbox/rebuild.sh
Pim van den Berg 077eec64ee
All checks were successful
continuous-integration/drone/push Build is passing
fix(rebuild): shellcheck warnings
2022-09-15 14:49:13 +02:00

15 lines
287 B
Bash
Executable File

#!/bin/sh
updates_available () {
docker pull "$1"
if test "$(docker run -it --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
return 0
else
return 1
fi
}
if updates_available pommib/jumpbox:latest; then
./build.sh
fi