fix(rebuild): the input device is not a TTY
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Pim van den Berg 2022-11-19 17:15:37 +01:00
parent 7c748897fc
commit 5ff94a411c
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
#!/bin/sh
set -x
updates_available () {
docker pull "$1"
if test "$(docker run -it --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
if test "$(docker run --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
return 0
else
return 1