summaryrefslogtreecommitdiff
path: root/home/.selfconfigs/git
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
commit0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch)
treef91b7ada571a4dab7ae99c8f3ee252616baff2db /home/.selfconfigs/git
squashed init
Diffstat (limited to 'home/.selfconfigs/git')
-rwxr-xr-xhome/.selfconfigs/git/git_pull_all16
1 files changed, 16 insertions, 0 deletions
diff --git a/home/.selfconfigs/git/git_pull_all b/home/.selfconfigs/git/git_pull_all
new file mode 100755
index 0000000..9c8a606
--- /dev/null
+++ b/home/.selfconfigs/git/git_pull_all
@@ -0,0 +1,16 @@
+#!/usr/bin/bash -eu
+
+git_repos="$(find ~/git -mindepth 1 -maxdepth 1 -type l,d)"
+echo "$git_repos" | while read line ; do
+ echo "<==================>"
+ echo "$line"
+ cd "$line"
+ git pull
+ if [[ -f "$line"/TODO ]]; then
+ echo
+ echo ">> TODO:"
+ cat "$line/TODO"
+ fi
+ echo "<==================>"
+ echo
+done