From 0d85cf61ae4c0611564d0435bad2325a037fcdaf Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 19 Nov 2022 17:10:31 +0100 Subject: [PATCH] fix(rebuild): the input device is not a TTY --- rebuild.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rebuild.sh b/rebuild.sh index d2f5dea..748bfe6 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -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