docker-swiss/rebuild.sh
Pim van den Berg 64e1fc08e4 init
2022-09-23 15:31:44 +02:00

15 lines
285 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/swiss:latest; then
./build.sh
fi