diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2012-02-03 18:12:19 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2012-02-03 18:12:19 +0100 |
commit | 9d90b7eb2bba17af3b7720caa9935f560c0cadfa (patch) | |
tree | 331049508caf6f2e507682e94cde8b61a1a52e62 /init.sh | |
parent | d8a3b76e6044689ebe4336abbcd21f677dbba31d (diff) | |
download | vim4projects-9d90b7eb2bba17af3b7720caa9935f560c0cadfa.tar.gz vim4projects-9d90b7eb2bba17af3b7720caa9935f560c0cadfa.tar.xz vim4projects-9d90b7eb2bba17af3b7720caa9935f560c0cadfa.zip |
init.sh: support for "post_get", git clone recursive
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'init.sh')
-rwxr-xr-x | init.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 # |