]> git.phdru.name Git - git-scripts.git/blobdiff - run-recursive
Refactor: Factor out run-recursive
[git-scripts.git] / run-recursive
diff --git a/run-recursive b/run-recursive
new file mode 100755 (executable)
index 0000000..401ed27
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+"$@" &&
+
+if [ -f .gitmodules ]; then
+   exec git submodule foreach "$@"
+fi