Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- for dir in $(find -L . -maxdepth 2 -xtype d -type d -iname .git | cut -d / -f 2 | sort); do
- echo $dir
- cd $dir
- git pull --rebase origin master
- cd ..
- echo "----------------"
- done
- for dir in $(find -L . -maxdepth 2 -xtype d -type d -iname .svn | cut -d / -f 2 | sort); do
- echo $dir
- svn up $dir
- echo "----------------"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement