瀏覽代碼

incorrect if

Daniel Gibbs 10 年之前
父節點
當前提交
b0257c7190
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lgsm/functions/monitor_gsquery.sh

+ 1 - 1
lgsm/functions/monitor_gsquery.sh

@@ -29,7 +29,7 @@ if [ "${gsquery}" == "yes" ]; then
 		port=$((port + 1))
 		port=$((port + 1))
 	fi
 	fi
 
 
-	if [ -z "${queryport}" ]; then
+	if [ -n "${queryport}" ]; then
 		port="${queryport}"
 		port="${queryport}"
 	fi
 	fi