Last active
December 16, 2015 06:29
-
-
Save dannyroberts/5391823 to your computer and use it in GitHub Desktop.
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
function delete-pyc() { | |
find . -name '*.pyc' -delete | |
} | |
function pull-latest-master() { | |
git checkout master; git pull origin master | |
git submodule update --init | |
git submodule foreach --recursive 'git checkout master; git pull origin master &' | |
until [ -z "$(ps aux | grep '[g]it pull')" ]; do sleep 1; done | |
} | |
function update-code() { | |
pull-latest-master | |
delete-pyc | |
} |
to run:
$ source update-code.sh
$ update-code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try GNU parallel