Update network.sh

This commit is contained in:
Kroese 2024-04-29 23:58:57 +02:00 committed by GitHub
parent 619b0d7f2b
commit 1b674e0b40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ getPorts() {
[ -z "$list" ] && list="$vnc" || list="$list,$vnc"
fi
[ -z "$list" ] && return 0
[ -z "$list" ] && echo "" && return 0
if [[ "$list" != *","* ]]; then
echo " ! --dport $list"