Created
June 12, 2012 10:08
-
-
Save Hounddog/2916711 to your computer and use it in GitHub Desktop.
Shell script to find if composer.lock has changed
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/sh | |
################################################################################ | |
# | |
# Script to determine if composer.lock is updated through git and run an update | |
# | |
############################################################################### | |
diff=`git diff origin/master composer.lock` | |
echo 'Checking for Dependency Updates' | |
if [ -z "$diff" ]; | |
then | |
echo 'Nothing to Update' | |
else | |
echo 'Updating Dependencies' | |
php composer.phar install --dev | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment