]> git.phdru.name Git - git-scripts.git/blobdiff - fsck-recursive
Add scripts to run fsck of all repositories
[git-scripts.git] / fsck-recursive
diff --git a/fsck-recursive b/fsck-recursive
new file mode 100755 (executable)
index 0000000..3e47bd2
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+prog_dir="`dirname \"$0\"`" &&
+"$prog_dir"/fsck &&
+
+if [ -f .gitmodules ]; then
+   exec git submodule foreach "$prog_dir"/fsck
+fi