diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-12-12 08:11:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 08:11:50 +0100 |
commit | b9e35d7dc400b7f8a8a55cd3ebb545f7787ea14c (patch) | |
tree | c8f1f25225bd5990b1647f14b76e9a70018d4525 /pkgs/build-support | |
parent | 2feabab3d6fb797931615b5c6b9736d8d72a3b41 (diff) | |
parent | f59d1cf6d6494900826bf80fa6dd7547d51e75d3 (diff) |
Merge pull request #272448 from drupol/php/composer-builder/filter-bat
build-support/php: prevent the creation of symlinks of `bin` ending with `.bat`
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/php/hooks/composer-install-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/php/hooks/composer-install-hook.sh b/pkgs/build-support/php/hooks/composer-install-hook.sh index 6fe1c4e5f7dde..6e7fb5d7503bf 100644 --- a/pkgs/build-support/php/hooks/composer-install-hook.sh +++ b/pkgs/build-support/php/hooks/composer-install-hook.sh @@ -155,7 +155,7 @@ composerInstallInstallHook() { cp -r . "$out"/share/php/"${pname}"/ # Create symlinks for the binaries. - jq -r -c 'try .bin[]' composer.json | while read -r bin; do + jq -r -c 'try (.bin[] | select(test(".bat$")? | not) )' composer.json | while read -r bin; do mkdir -p "$out"/share/php/"${pname}" "$out"/bin makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" done |