1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 07:18:06 +02:00

Refactored continue prompt

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
Miguel Serrano 2024-11-18 13:44:30 +01:00 committed by GitHub
parent 624af84035
commit e6e45a1509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,12 +169,7 @@ function handle_image_upgrade() {
echo " If you try subsequently to restart your instance it will fail until the updated image with"
echo " tag $SEED_IMAGE_VERSION is available in your system"
echo "------------------- WARNING ----------------------"
local should_continue="n"
read -r -p "Continue with the upgrade process? [y/n] " should_continue
if [[ ! "$should_continue" =~ [Yy] ]]; then
echo "Exiting."
exit 1
fi
prompt "Continue with the upgrade process?"
else
set_git_bridge_image_name "$SEED_IMAGE_VERSION"
docker pull "$GIT_BRIDGE_IMAGE"