termux-packages/packages/composer/fix-shebang.patch
Leonid Pliushch 6de7b2d141
composer: platform independent + fix shebang
PHARs do not like to be edited after compilation, so shebang
has to be fixed before it was created.
2020-12-10 23:06:46 +02:00

14 lines
389 B
Diff

diff --git a/src/Composer/Compiler.php b/src/Composer/Compiler.php
index a31aff946..8398862a1 100644
--- a/src/Composer/Compiler.php
+++ b/src/Composer/Compiler.php
@@ -260,7 +260,7 @@ private function stripWhitespace($source)
private function getStub()
{
$stub = <<<'EOF'
-#!/usr/bin/env php
+#!@TERMUX_PREFIX@/bin/env php
<?php
/*
* This file is part of Composer.