gopher.sh: fix protocol default port
[gofetch.git] / gopher.sh
index 4fd277bc2cc3b551ddab79945463cff32f28af00..26f5854186661a79f3a7f2df950dc11e718108a6 100755 (executable)
--- a/gopher.sh
+++ b/gopher.sh
@@ -54,8 +54,8 @@ PORT="`echo "$PORT" | sed 's/^://'`"
 # Defaults:
 if [ "$PORT" = "" ];then
        case "$PROTOCOL" in
-       http)  PORT=80 ;;
-       https) PORT=443;;
+       http://)  PORT=80 ;;
+       https://) PORT=443;;
        *)     PORT=70 ;;
        esac
 fi