fix update script failure when image tag is missing

This commit is contained in:
copilot-swe-agent[bot]
2026-07-14 13:06:43 +00:00
committed by GitHub
parent 32f77c7054
commit 6ed071400a

View File

@@ -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