Created
March 27, 2013 03:58
-
-
Save nullivex/5251512 to your computer and use it in GitHub Desktop.
Push LSS packages from composer tree
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 | |
pkg="$1" | |
cd $1 | |
#check for untracted files | |
if [ $(git status | grep -i "Untracked files" | wc -l) -gt 0 ]; then | |
echo "Untracked files cant push" | |
exit | |
fi | |
git commit -a -m "$2" | |
commit=$(git log | head -1 | awk '{print $2}') | |
git checkout master | |
git merge $commit | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
./push_pkg.sh func-ui "new features"