Skip to content

Commit 8dd5cd1

Browse files
committed
Fix $city always not work
1 parent 88dd91d commit 8dd5cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superbench.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ ip_info4() {
379379
org=$(python tools.py geoip org)
380380
countryCode=$(python tools.py ipip country_code)
381381
region=$(python tools.py ipip province)
382-
if [ !city ]; then
382+
if [ -z $city ]; then
383383
city=${region}
384384
fi
385385

0 commit comments

Comments
 (0)