From 44bb9b6984d8dd3db16a7be9c3275870b133b0c4 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 20 Jul 2017 13:30:55 +0200 Subject: [PATCH] reduce console startup using recursive init of submodules --- console.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/console.sh b/console.sh index fef1358..f1422f0 100755 --- a/console.sh +++ b/console.sh @@ -1,6 +1,6 @@ #!/bin/sh -if ! [ -r vm-sdk ]; then git submodule update --init; fi +if ! [ -r vm-sdk ]; then git submodule update --init --recursive; fi sdk="${1:-vm-sdk}" @@ -8,14 +8,6 @@ cat < $sdk/.zshrc # local zshrc for easy start of console # usage: ZDOTDIR=/path/to/vm-sdk zsh pushd \$ZDOTDIR > /dev/null -# check that all submodules are there, useful for git repos -[[ -r lib/zuper/zuper ]] || git submodule update --init -[[ -r lib/libdevuansdk/LICENSE ]] || git submodule update --init -[[ -r lib/libdevuansdk/extra/debootstrap/debootstrap ]] || { - pushd lib/libdevuansdk > /dev/null - git submodule update --init - popd -} source sdk load devuan decode