Advertisement
Guest User

i_got_lazy_with_pull

a guest
Jan 21st, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. echo "[*] Script started"
  4.  
  5. for file in ~/Documents/Tools/*
  6. do
  7.         echo "$file"
  8.  
  9.         [ -d "$file" ] && cd "$file"
  10.         echo "[*] cd into "$file""
  11.         sleep 1
  12.         git pull
  13.  
  14. done
  15.  
  16. echo "[*] Script done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement