From b94a3f4ff811def4df1148a23c9c0c4a2818010b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Wed, 13 Dec 2023 13:49:48 +0100 Subject: [PATCH] Take review comments into account. --- sbin/common/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/common/common.sh b/sbin/common/common.sh index c5d988b62..51792a409 100755 --- a/sbin/common/common.sh +++ b/sbin/common/common.sh @@ -99,7 +99,7 @@ function setDockerVolumeSuffix() { # Joins multiple parts to a valid file path for the current OS function joinPathOS() { # dont use printf as it might not work as expected on solaris build machines. - local path=$(IFS=/; echo "/$*" | tr -s /) + local path=$(echo "/${@}" | tr ' ' / | tr -s /) if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then path=$(cygpath -w "${path}") fi @@ -109,7 +109,7 @@ function joinPathOS() { # Joins multiple parts to a valid file path using slashes function joinPath() { # dont use printf as it might not work as expected on solaris build machines. - local path=$(IFS=/; echo "/$*" | tr -s /) + local path=$(echo "/${@}" | tr ' ' / | tr -s /) echo "${path}" }