logical bug fix
This commit is contained in:
+1
-1
@@ -203,7 +203,7 @@ while [ "$1" != "" ]; do
|
|||||||
if [[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]]; then
|
if [[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]]; then
|
||||||
port=$1
|
port=$1
|
||||||
elif [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]]; then
|
elif [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]]; then
|
||||||
ports=$1
|
for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help || ports=$1; done
|
||||||
else
|
else
|
||||||
help
|
help
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user