aboutsummaryrefslogtreecommitdiff
path: root/pull_git_repos.sh
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2024-02-02 22:56:54 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2024-02-02 22:56:54 +0100
commitf43184a57698bd4f44d92f29d7c220521eb92f44 (patch)
tree3b752d836f9c8c4e5d4b86075207375a21312438 /pull_git_repos.sh
parent867ed2181d40ef8207f1487c6ff448cb35c7379a (diff)
downloaddotfiles-f43184a57698bd4f44d92f29d7c220521eb92f44.tar.gz
dotfiles-f43184a57698bd4f44d92f29d7c220521eb92f44.tar.bz2
add old script to pull for the local git repos.
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
+