From 73511783556a54f97108f5b8796cc7fc0b57ef5a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 16 Feb 2023 10:01:21 +0100 Subject: [run-virt] Silence warning if no port given --- core/modules/run-virt/data/opt/openslx/vmchooser/scripts/set-firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/run-virt/data') 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" -- cgit v1.2.3-55-g7522