aboutsummaryrefslogtreecommitdiff
path: root/pull_git_repos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pull_git_repos.sh')
-rwxr-xr-xpull_git_repos.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/pull_git_repos.sh b/pull_git_repos.sh
new file mode 100755
index 0000000..1bee289
--- /dev/null
+++ b/pull_git_repos.sh
@@ -0,0 +1,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
+