daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top