Created
August 8, 2017 20:55
-
-
Save hansfn/5262c07f70294e971fe890b4a4419504 to your computer and use it in GitHub Desktop.
Patch for fixing 'Could not open input file: composer.phar"' when running composer in Acquia Dev Desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- composer.bat.orig 2017-08-08 22:25:55.769011700 +0200 | |
+++ composer.bat 2017-08-08 22:42:33.878045000 +0200 | |
@@ -1,2 +1,6 @@ | |
-@SET PATH=C:\Development\AcquiaDevDesktop\php5_4;%PATH% | |
-php.exe composer.phar %* | |
+@echo off | |
+ | |
+IF "%PHP_ID%"=="" (SET PHP_ID=php5_5) | |
+SET PATH=C:\Development\AcquiaDevDesktop\%PHP_ID%;%PATH% | |
+ | |
+php.exe %~dp0\composer.phar %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment