Skip to content

Instantly share code, notes, and snippets.

@valvallow
Created June 20, 2013 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valvallow/5819313 to your computer and use it in GitHub Desktop.
Save valvallow/5819313 to your computer and use it in GitHub Desktop.
#!/bin/sh
BASE_DIR=`pwd`
if [ "$#" -eq 0 ] ; then
echo 'Usage: ' "$0" ' dirname ...'
exit
fi
for dir in $@
do
echo $dir
cd $dir
git pull
cd $BASE_DIR
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment