2019-01-19

This commit is contained in:
monlor
2019-01-19 12:02:30 +08:00
parent 62e6f5266e
commit 968acc1d90
23 changed files with 40 additions and 35 deletions

View File

@@ -178,7 +178,7 @@ readsh() {
mbdb set $appname.main.$uciname="$default" || echo "设置key:"$uciname"等于value:"$default"出错!"
fi
else
if [ "$uciname" = "port" -a -n "$(netstat -tunpl 2> /dev/null | grep -w "$res")" ]; then
if [ "$uciname" = "port" ] && [ -n "$(netstat -tunpl 2> /dev/null | grep -w "$res")" ]; then
echo "端口已被占用!请重新输入!"
readsh $@
else