From 5796bf0472d9612ef165daeb108142dfa2689b7c Mon Sep 17 00:00:00 2001 From: cotox <39076296+cotox@users.noreply.github.com> Date: Mon, 3 Dec 2018 22:09:55 +0800 Subject: [PATCH] Fix $city always not work --- superbench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superbench.sh b/superbench.sh index c031bfd..c07998a 100644 --- a/superbench.sh +++ b/superbench.sh @@ -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