mirror of
https://github.com/pyenv/pyenv.git
synced 2025-12-08 23:41:26 +09:00
python-build: Support patch paths with spaces/special characters (#3251)
This is now possible because all non-EOL MacOS versions now support `find -print0`/`sort -z`/`xargs -0`
This commit is contained in:
parent
f216b4bfb1
commit
9656bcf0b9
@ -1160,8 +1160,8 @@ setup_builtin_patches() {
|
|||||||
cat >"${package_name}.patch"
|
cat >"${package_name}.patch"
|
||||||
HAS_PATCH=true
|
HAS_PATCH=true
|
||||||
elif [[ -d "${package_patch_path}" ]]; then
|
elif [[ -d "${package_patch_path}" ]]; then
|
||||||
{ find "${package_patch_path}" -maxdepth 1 -type f
|
{ find "${package_patch_path}" -maxdepth 1 -type f -print0
|
||||||
} 2>/dev/null | sort | xargs cat 1>"${package_name}.patch"
|
} 2>/dev/null | sort -z | xargs -0 cat 1>"${package_name}.patch"
|
||||||
HAS_PATCH=true
|
HAS_PATCH=true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user