diff options
author | Simon Rettberg | 2023-02-16 10:01:21 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-02-16 10:01:21 +0100 |
commit | 73511783556a54f97108f5b8796cc7fc0b57ef5a (patch) | |
tree | d84a770bb100b4271756881d7964a19031aa7d11 /core/modules/run-virt | |
parent | [debug-report-bwlp] Add useful params to some tools (diff) | |
download | mltk-73511783556a54f97108f5b8796cc7fc0b57ef5a.tar.gz mltk-73511783556a54f97108f5b8796cc7fc0b57ef5a.tar.xz mltk-73511783556a54f97108f5b8796cc7fc0b57ef5a.zip |
[run-virt] Silence warning if no port given
Diffstat (limited to 'core/modules/run-virt')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall b/core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall index a1af17dc..d74c58ec 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall @@ -64,7 +64,7 @@ add_ips () { [ -z "$1" -o -z "$2" -o -z "$port_def" -o -z "$4" ] && return 1 for ip in $2; do port="${ip#*:}" - if (( port > 0 && port < 65536 )); then + if (( port > 0 && port < 65536 )) 2> /dev/null; then ip="${ip%:*}" else port="$port_def" |