From aac7f1a83c8d523860f0569fcda8cd7f799ea41c Mon Sep 17 00:00:00 2001 From: Sjaak Westdijk Date: Wed, 16 Jul 2025 06:46:11 +0200 Subject: [PATCH] Make ssh command OpenBSD compliant --- scripts/shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/shared.sh b/scripts/shared.sh index ff9a849..e4304be 100644 --- a/scripts/shared.sh +++ b/scripts/shared.sh @@ -76,7 +76,7 @@ __get_remote_info() { # Fetch configuration with given cmd # Depending of ssh version, configuration output may or may not contain `host` directive # Check both `host` and `hostname` for old ssh versions compatibility and prefer `host` if exists - ssh -TGN $cmd 2>/dev/null | grep -E -e '^host(name)?\s' -e '^port\s' -e '^user\s' | sort --unique --key 1,1.4 | cut -f 2 -d ' ' | xargs + ssh -TGN $cmd 2>/dev/null | grep -E -e '^host(name)?[[:space:]]' -e '^port[[:space:]]' -e '^user[[:space:]]' | sort --unique --key 1,1.4 | cut -f 2 -d ' ' | xargs } __get_container_info() {