Skip to content

Commit 44bb9b6

Browse files
committed
reduce console startup using recursive init of submodules
1 parent d12f104 commit 44bb9b6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

console.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
#!/bin/sh
22

3-
if ! [ -r vm-sdk ]; then git submodule update --init; fi
3+
if ! [ -r vm-sdk ]; then git submodule update --init --recursive; fi
44

55
sdk="${1:-vm-sdk}"
66

77
cat <<EOF > $sdk/.zshrc
88
# local zshrc for easy start of console
99
# usage: ZDOTDIR=/path/to/vm-sdk zsh
1010
pushd \$ZDOTDIR > /dev/null
11-
# check that all submodules are there, useful for git repos
12-
[[ -r lib/zuper/zuper ]] || git submodule update --init
13-
[[ -r lib/libdevuansdk/LICENSE ]] || git submodule update --init
14-
[[ -r lib/libdevuansdk/extra/debootstrap/debootstrap ]] || {
15-
pushd lib/libdevuansdk > /dev/null
16-
git submodule update --init
17-
popd
18-
}
1911
2012
source sdk
2113
load devuan decode

0 commit comments

Comments
 (0)