chan15

Fetch Git Plugin Directories And Git Pull

Oct 9th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. for item in *
  2. do
  3.     if [ -d "$item" ]; then
  4.         echo processing $item
  5.         cd $item
  6.         git pull
  7.         echo finish $item
  8.         printf "\n------------------------------------\n\n"
  9.         cd ..
  10.     fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment