Created
October 28, 2013 13:41
-
-
Save bgallagh3r/7196971 to your computer and use it in GitHub Desktop.
Make git run composer install/update after you push to remote server.
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
#!/bin/bash | |
DIR=$(git rev-parse --show-toplevel) | |
if [ -e "$DIR/composer.json" ]; then | |
if [ -d "$DIR/vendor" ]; then | |
composer.phar install | |
else | |
composer.phar update | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment