mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2026-07-22 08:09:48 +00:00
Handle missing BitBetter image tags in update flow under set -e (#288)
* Initial plan * fix update script failure when image tag is missing --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -56,11 +56,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if user wants to rebuild the bitbetter images
|
# 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="n"
|
||||||
REBUILD_BB_DESCR="[y/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="y"
|
||||||
REBUILD_BB_DESCR="[Y/n]"
|
REBUILD_BB_DESCR="[Y/n]"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user