aboutsummaryrefslogtreecommitdiff
path: root/home/repack.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-09-13 16:10:11 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-09-13 16:10:11 -0400
commit578b04e3f380cfd674cd545f6a4d673b4e046bf5 (patch)
tree0ae11672ff5b90a73e5abb489fa1a5b6d9e67862 /home/repack.sh
downloadalpine-cgit-578b04e3f380cfd674cd545f6a4d673b4e046bf5.tar.gz
alpine-cgit-578b04e3f380cfd674cd545f6a4d673b4e046bf5.tar.xz
Initial
Diffstat (limited to 'home/repack.sh')
-rwxr-xr-xhome/repack.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/home/repack.sh b/home/repack.sh
new file mode 100755
index 0000000..25419ea
--- /dev/null
+++ b/home/repack.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+set -x
+
+repos="$(find "$HOME" -type d -iname '*.git')"
+
+IFS="
+"
+
+for repo in $repos ; do
+ cd "$repo"
+ git repack
+done