Last active
September 15, 2016 23:20
-
-
Save AviDuda/e22684c1f627ffbff6ffce7315607a27 to your computer and use it in GitHub Desktop.
WTServer Composer doesn't handle "composer global require" well - this should fix it.
This file contains 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
@ECHO off | |
REM WTServer Composer doesn't handle "composer global require" well - this should fix it. | |
SET COMPOSER_HOME=c:\wtserver\bin\composer | |
SET COMPOSER_CACHE_DIR=c:\wtserver\bin\composer | |
SET composercmd=php "c:\wtserver\bin\composer\composer.phar" | |
IF "%1" == "global" ( | |
SET cwd=%COMPOSER_HOME% | |
) ELSE ( | |
SET cwd=%cd% | |
SET "cwd=%cwd:\=/%" | |
SET composercmd=%composercmd% --working-dir="%cwd%" | |
) | |
%composercmd% %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment