Skip to content

Commit

Permalink
Fix $city always not work
Browse files Browse the repository at this point in the history
  • Loading branch information
cotox committed Dec 3, 2018
1 parent 88dd91d commit 8dd5cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ ip_info4() {
org=$(python tools.py geoip org)
countryCode=$(python tools.py ipip country_code)
region=$(python tools.py ipip province)
if [ !city ]; then
if [ -z $city ]; then
city=${region}
fi

Expand Down

0 comments on commit 8dd5cd1

Please sign in to comment.