Skip to content

Commit c5c9860

Browse files
authored
Update trust-cert.sh prompt to use y|n + ENTER (#1240)
1 parent 25c59ac commit c5c9860

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev-proxy/trust-cert.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
#!/bin/bash
12
set -e
23

3-
echo -e "\nDev Proxy uses a self-signed certificate to intercept and inspect HTTPS traffic.\nUpdate the certificate in your Keychain so that it's trusted by your browser? (Y/n)? \c"
4-
read -n 1 answer
4+
echo -e "\nDev Proxy uses a self-signed certificate to intercept and inspect HTTPS traffic."
5+
read -r -p "Update the certificate in your Keychain so that it's trusted by your browser? (Y/n): " answer
56

6-
if [ "$answer" = "n" ]; then
7+
if [ "$answer" = "n" ] || [ "$answer" = "N" ]; then
78
echo -e "\n\033[1;33mTrust the certificate in your Keychain manually to avoid errors.\033[0m\n"
89
exit 1
910
fi

0 commit comments

Comments
 (0)