Skip to content

Commit

Permalink
Take review comments into account.
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Dec 13, 2023
1 parent 9931e42 commit b94a3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
}

Expand Down

0 comments on commit b94a3f4

Please sign in to comment.