Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/sh
  2. for dir in $(find -L . -maxdepth 2 -xtype d -type d -iname .git | cut -d / -f 2 | sort); do
  3.         echo $dir
  4.         cd $dir
  5.         git pull --rebase origin master
  6.         cd ..
  7.         echo "----------------"
  8. done
  9.  
  10. for dir in $(find -L . -maxdepth 2 -xtype d -type d -iname .svn | cut -d / -f 2 | sort); do
  11.         echo $dir
  12.         svn up $dir
  13.         echo "----------------"
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement