Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. i =0
  3. while read p; do
  4. let "i += 1"
  5. if [[ $p == *"git"* ]]
  6. then
  7. if [[ $p != *"master.git"* && $p != *"fabi-ios"* ]]
  8. then
  9. echo "cloning $p"
  10. git clone $p
  11. fi
  12. fi
  13. done <repo_list.txt
  14.  
  15.  
  16. #!/bin/bash
  17. path="/home/fabihelp/repo_baks/"
  18. while read p; do
  19. echo $path$p
  20. if [[ -d $path$p ]]
  21. then
  22. cd $path$p
  23. echo "fetching $p"
  24. git fetch --all
  25. git pull origin master
  26. fi
  27. done <repo_dir_list.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement