[depends] Allow PATH with spaces in directory names.

added test and update code based on feedback
This commit is contained in:
Mark Friedenbach
2022-04-20 12:50:37 -07:00
committed by Alfonso Roman Zubeldia
parent 4baa162dbb
commit 4756114e50
2 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ if [ "$CI_OS_NAME" == "macos" ]; then
fi
CI_EXEC () {
$CI_EXEC_CMD_PREFIX bash -c "export PATH=${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH && cd \"${BASE_ROOT_DIR}\" && $*"
$CI_EXEC_CMD_PREFIX bash -c "export PATH=\"/path_with space:${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH\" && cd \"${BASE_ROOT_DIR}\" && $*"
}
export -f CI_EXEC