Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server][script] enhance reading choice and refactor choice

Keerthanad0f637b15465
diff --git a/server/quickstart.sh b/server/quickstart.sh
index 6fa881188e..4c2a58f871 100755
--- a/server/quickstart.sh
+++ b/server/quickstart.sh
@@ -193,10 +193,10 @@ EOF
printf " \033[1;32mT\033[0m Created \033[1mmuseum.yaml\033[0m\n"
sleep 1
-printf " \033[1;32mE\033[0m Do you want to start Ente? (y/n): "
-read choice
+printf " \033[1;32mE\033[0m Do you want to start Ente? (y/n) [n]: "
+read -r choice
-if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
+if [[ "$choice" =~ ^[Yy]$ ]]; then
printf "\nStarting docker compose\n"
printf "\nAfter the cluster has started, open web app at \033[1mhttp://localhost:3000\033[0m\n"
printf "(Verification code will be in the logs here)\n\n"