reduce console startup using recursive init of submodules

This commit is contained in:
Jaromil 2017-07-20 13:30:55 +02:00
parent d12f104cd6
commit 44bb9b6984
1 changed files with 1 additions and 9 deletions

View File

@ -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 <<EOF > $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