check if bitbetter images are outdated
This commit is contained in:
parent
9ddef3cb19
commit
37ca459570
|
@ -40,8 +40,15 @@ 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"
|
||||||
read -p "Rebuild BitBetter images? [y/N]: " tmprebuild
|
REBUILD_BB_DESCR="[y/N]"
|
||||||
|
if [ $retval -ne 0 ]; then
|
||||||
|
REBUILD_BB="y"
|
||||||
|
REBUILD_BB_DESCR="[Y/n]"
|
||||||
|
fi
|
||||||
|
read -p "Rebuild BitBetter images? $REBUILD_BB_DESCR: " tmprebuild
|
||||||
REBUILD_BB=${tmprebuild:-$REBUILD_BB}
|
REBUILD_BB=${tmprebuild:-$REBUILD_BB}
|
||||||
|
|
||||||
if [[ $REBUILD_BB =~ ^[Yy]$ ]]
|
if [[ $REBUILD_BB =~ ^[Yy]$ ]]
|
||||||
|
|
Loading…
Reference in New Issue