Skip to content

Instantly share code, notes, and snippets.

Hans Fredrik Nordhaug hansfn

Block or report user

Report or block hansfn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hansfn
hansfn / composer.bat.patch
Created Aug 8, 2017
Patch for fixing 'Could not open input file: composer.phar"' when running composer in Acquia Dev Desktop
View composer.bat.patch
--- 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%
+
You can’t perform that action at this time.