Skip to content

Commit c0ab131

Browse files
committed
macOS (3)
1 parent 986636b commit c0ab131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/scripts/java_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cp -r "${source_dir}/dev" "${build_dir}"
5050

5151
poms=$(find "${source_dir}" -not \( -path "${source_dir}"/build -prune \) -type f -name pom.xml)
5252
if [[ "$OSTYPE" == "darwin"* ]]; then
53-
poms=$(echo "$poms" | xargs -n1 python -c "import os.path; print(os.path.relpath('{}', '${source_dir}'))")
53+
poms=$(echo "$poms" | xargs -n1 python -c "import sys; import os.path; print(os.path.relpath(sys.argv[1], '${source_dir}'))")
5454
else
5555
poms=$(echo "$poms" | xargs -n1 realpath -s --relative-to="${source_dir}")
5656
fi

0 commit comments

Comments
 (0)