File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ select_deployment_mode() {
342342 mode_choice=" $MODE_CHOICE "
343343 echo " π Using mode_choice from argument: $mode_choice "
344344 else
345- read -p " π Enter your choice [1/2/3/4 ] (default: 1): " mode_choice
345+ read -p " π Enter your choice [1/2/3] (default: 1): " mode_choice
346346 fi
347347
348348 # Sanitize potential Windows CR in input
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ prepare_env_file() {
1212 if [ -f " ../.env" ]; then
1313 echo " β οΈ .env already exists in root directory"
1414 echo " "
15- read -p " π Do you want to overwrite it? [Y/N] (default: N): " overwrite
15+ read -p " π Do you want to overwrite it? [Y/N] (default: Y): " overwrite
16+ # If input is empty, use default "Y"
17+ overwrite=${overwrite:- Y}
1618 if [[ ! " $overwrite " =~ ^[Yy]$ ]]; then
1719 echo " Using existing .env file"
1820 return 0
You canβt perform that action at this time.
0 commit comments