Created
December 13, 2012 16:54
-
-
Save zircote/4277884 to your computer and use it in GitHub Desktop.
Got tired of finding I was not running latest composer version.
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
| #!/bin/bash | |
| COMPOSER=$(type -p "composer.phar") | |
| if [ -x "${COMPOSER}" ]; then | |
| ${COMPOSER} self-update > /dev/null | |
| else | |
| $(type -p "php") -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));" | |
| fi | |
| ${COMPOSER} $@ |
Author
zircote
commented
Dec 13, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment