diff --git a/ci/scripts/build.sh b/ci/scripts/build.sh index 146a40cf7a..2d56c918f0 100755 --- a/ci/scripts/build.sh +++ b/ci/scripts/build.sh @@ -48,7 +48,7 @@ cp -r "${source_dir}/dev" "${build_dir}" poms=$(find "${source_dir}" -not \( -path "${source_dir}"/build -prune \) -type f -name pom.xml) if [[ "$OSTYPE" == "darwin"* ]]; then - poms=$(echo "$poms" | xargs -n1 python -c "import sys; import os.path; print(os.path.relpath(sys.argv[1], '${source_dir}'))") + poms=$(echo "$poms" | xargs -n1 "${PYTHON:-python3}" -c "import sys; import os.path; print(os.path.relpath(sys.argv[1], '${source_dir}'))") else poms=$(echo "$poms" | xargs -n1 realpath -s --relative-to="${source_dir}") fi