summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.sh b/init.sh
index b7e709f..149cadc 100755
--- a/init.sh
+++ b/init.sh
@@ -55,7 +55,7 @@ do_git_submodule () {
announce "$1 $submodule (git submodule)"
if [ "$1" == "get" ]; then
pushd "$(git rev-parse --show-toplevel)" 2>/dev/null
- git submodule update --init "${git_prefix}${submodule}" 2>&1
+ git submodule update --init --recursive "${git_prefix}${submodule}" 2>&1
popd 2>/dev/null
else
do_del "$submodule"
@@ -103,6 +103,12 @@ do_svn () {
check_ret $?
}
+do_post_get () {
+ # usage: $1=action ($1 passed from main), $2..$N command + args
+ [ "$1" != "get" ] || "${@:2}"
+ check_ret $?
+}
+
#
# source the choices (./init-* files) and go
#