Homework 03: (Hopefully) fixed zipcode.sh

This commit is contained in:
Owen Dorweiler 2025-02-08 13:02:19 -05:00 committed by Peter Bui
commit 7467fd2f61

View file

@ -3,7 +3,7 @@
# Globals
URL=https://www.zipcodestogo.com/
CITY=0
CITY="0"
STATE="Indiana"
# Functions
@ -51,9 +51,9 @@ while [ $# -gt 0 ]; do
;;
-c)
shift
CITY=()
CITY=""
while [ $# -gt 0 ] && [ "${1#-}" = "$1" ]; do
CITY+=("$1")
CITY+="$1"
shift
done