You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-proxy/trust-cert.sh
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
+
#!/bin/bash
1
2
set -e
2
3
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
5
6
6
-
if [ "$answer"="n" ];then
7
+
if [ "$answer"="n" ]|| [ "$answer"="N" ];then
7
8
echo -e "\n\033[1;33mTrust the certificate in your Keychain manually to avoid errors.\033[0m\n"
0 commit comments