Homework 03: (Hopefully) fixed zipcode.sh
This commit is contained in:
parent
690be1e029
commit
7467fd2f61
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
# Globals
|
# Globals
|
||||||
|
|
||||||
URL=https://www.zipcodestogo.com/
|
URL=https://www.zipcodestogo.com/
|
||||||
CITY=0
|
CITY="0"
|
||||||
STATE="Indiana"
|
STATE="Indiana"
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
@ -51,9 +51,9 @@ while [ $# -gt 0 ]; do
|
||||||
;;
|
;;
|
||||||
-c)
|
-c)
|
||||||
shift
|
shift
|
||||||
CITY=()
|
CITY=""
|
||||||
while [ $# -gt 0 ] && [ "${1#-}" = "$1" ]; do
|
while [ $# -gt 0 ] && [ "${1#-}" = "$1" ]; do
|
||||||
CITY+=("$1")
|
CITY+="$1"
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue