Skip to content

Commit 0d3d040

Browse files
committed
fix: #239 fix postgres version
1 parent 860b1da commit 0d3d040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: scripts/self-hosted/install-server.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ choose_ip_address() {
156156
echo "$(gray "(Enter the number of your choice)")"
157157

158158
while true; do
159-
read -p "$(green ">") " choice
159+
read -r -p "$(green ">") " choice
160160
if [[ "$choice" =~ ^[0-9]+$ ]] && [ "$choice" -ge 1 ] && [ "$choice" -le "${#ip_array[@]}" ]; then
161161
local chosen_ip="${ip_array[$((choice-1))]}"
162162
echo -e "\n$(green "You selected:") $(cyan "$chosen_ip")\n"
@@ -190,7 +190,7 @@ get_user_credentials() {
190190

191191
# Ask for email
192192
while true; do
193-
read -p "$(green "Enter your email: ")" USER_EMAIL
193+
read -r -p "$(green "Enter your email: ")" USER_EMAIL
194194
if [[ "$USER_EMAIL" =~ ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}$ ]]; then
195195
break
196196
else
@@ -200,9 +200,9 @@ get_user_credentials() {
200200

201201
# Ask for password
202202
while true; do
203-
read -s -p "$(green "Enter your password: ")" USER_PASSWORD
203+
read -r -s -p "$(green "Enter your password: ")" USER_PASSWORD
204204
echo
205-
read -s -p "$(green "Confirm your password: ")" USER_PASSWORD_CONFIRM
205+
read -r -s -p "$(green "Confirm your password: ")" USER_PASSWORD_CONFIRM
206206
echo
207207
if [ "$USER_PASSWORD" = "$USER_PASSWORD_CONFIRM" ]; then
208208
break

0 commit comments

Comments
 (0)