logical bug fix

This commit is contained in:
jc
2025-04-27 20:36:59 +03:00
parent b9bcb9696e
commit 3405749a28
+1 -1
View File
@@ -203,7 +203,7 @@ while [ "$1" != "" ]; do
if [[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]]; then
port=$1
elif [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]]; then
ports=$1
for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help || ports=$1; done
else
help
exit