Merge pull request #12 from christian-blades-cb/fixup-phpnotfound

call php scripts via php interpreter instead of relying on shebang
This commit is contained in:
Sander van der Burg 2021-02-27 13:51:03 +01:00 committed by GitHub
commit 6fe8f203e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ let
# Reconstruct the installed.json file from the lock file
mkdir -p vendor/composer
${reconstructInstalled} composer.lock > vendor/composer/installed.json
${php}/bin/php ${reconstructInstalled} composer.lock > vendor/composer/installed.json
# Copy or symlink the provided dependencies
cd vendor
@ -193,7 +193,7 @@ let
${lib.optionalString executable ''
# Reconstruct the bin/ folder if we deploy an executable project
${constructBin} composer.json
${php}/bin/php ${constructBin} composer.json
ln -s $(pwd)/vendor/bin $out/bin
''}