File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ choose_ip_address() {
156
156
echo " $( gray " (Enter the number of your choice)" ) "
157
157
158
158
while true ; do
159
- read -p " $( green " >" ) " choice
159
+ read -r - p " $( green " >" ) " choice
160
160
if [[ " $choice " =~ ^[0-9]+$ ]] && [ " $choice " -ge 1 ] && [ " $choice " -le " ${# ip_array[@]} " ]; then
161
161
local chosen_ip=" ${ip_array[$((choice-1))]} "
162
162
echo -e " \n$( green " You selected:" ) $( cyan " $chosen_ip " ) \n"
@@ -190,7 +190,7 @@ get_user_credentials() {
190
190
191
191
# Ask for email
192
192
while true ; do
193
- read -p " $( green " Enter your email: " ) " USER_EMAIL
193
+ read -r - p " $( green " Enter your email: " ) " USER_EMAIL
194
194
if [[ " $USER_EMAIL " =~ ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Z| a-z]{2,}$ ]]; then
195
195
break
196
196
else
@@ -200,9 +200,9 @@ get_user_credentials() {
200
200
201
201
# Ask for password
202
202
while true ; do
203
- read -s -p " $( green " Enter your password: " ) " USER_PASSWORD
203
+ read -r - s -p " $( green " Enter your password: " ) " USER_PASSWORD
204
204
echo
205
- read -s -p " $( green " Confirm your password: " ) " USER_PASSWORD_CONFIRM
205
+ read -r - s -p " $( green " Confirm your password: " ) " USER_PASSWORD_CONFIRM
206
206
echo
207
207
if [ " $USER_PASSWORD " = " $USER_PASSWORD_CONFIRM " ]; then
208
208
break
You can’t perform that action at this time.
0 commit comments