Merge pull request #272448 from drupol/php/composer-builder/filter-bat

build-support/php: prevent the creation of symlinks of `bin` ending with `.bat`

authored by Pol Dellaiera and committed by GitHub b9e35d7d 2feabab3

+1 -1
+1 -1
pkgs/build-support/php/hooks/composer-install-hook.sh
··· 155 cp -r . "$out"/share/php/"${pname}"/ 156 157 # Create symlinks for the binaries. 158 - jq -r -c 'try .bin[]' composer.json | while read -r bin; do 159 mkdir -p "$out"/share/php/"${pname}" "$out"/bin 160 makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" 161 done
··· 155 cp -r . "$out"/share/php/"${pname}"/ 156 157 # Create symlinks for the binaries. 158 + jq -r -c 'try (.bin[] | select(test(".bat$")? | not) )' composer.json | while read -r bin; do 159 mkdir -p "$out"/share/php/"${pname}" "$out"/bin 160 makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")" 161 done