Created
June 7, 2019 13:38
-
-
Save slopeofhope81/ec61316e96cf8669de846739595bb91b to your computer and use it in GitHub Desktop.
pulling all submodules
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 | |
| git pull | |
| for app in $(ls apps); do | |
| echo $app | |
| cd apps/$app | |
| branch=$(git symbolic-ref --short -q HEAD) | |
| if [ $branch = "master" ] ; then | |
| git pull | |
| fi | |
| cd - | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment