From 6ed071400a299e15a5a327d480a3baea4972e5b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:06:43 +0000 Subject: [PATCH] fix update script failure when image tag is missing --- update-bitwarden.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update-bitwarden.sh b/update-bitwarden.sh index cc313c1..5a03b3e 100755 --- a/update-bitwarden.sh +++ b/update-bitwarden.sh @@ -56,11 +56,9 @@ else fi # Check if user wants to rebuild the bitbetter images -docker images bitbetter/api --format="{{ .Tag }}" | grep -F -- "${BW_VERSION}" > /dev/null -retval=$? REBUILD_BB="n" REBUILD_BB_DESCR="[y/N]" -if [ $retval -ne 0 ]; then +if ! docker images bitbetter/api --format="{{ .Tag }}" | grep -F -- "${BW_VERSION}" > /dev/null; then REBUILD_BB="y" REBUILD_BB_DESCR="[Y/n]" fi