aboutsummaryrefslogtreecommitdiff
path: root/pull_git_repos.sh
blob: 1bee289652d0780b8856b8525a1bf87456818acd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

cd ~/git
for f in * ; do
    if [ -d "$f" ] && [ -d "$f/.git" ]; then
        cd "$f"
        echo -e "\n\e[1m" ; pwd ; echo -e "\e[0m"
        git pull
        cd ~/git
    fi
done