updated installer to pull required submodules
This commit is contained in:
parent
a0c8bbf0c9
commit
f89bb06042
16
setup/linux
16
setup/linux
@ -10,12 +10,24 @@ cd "${0:a:h}"
|
|||||||
export DOTWRYN_PATH="$(git rev-parse --show-toplevel)"
|
export DOTWRYN_PATH="$(git rev-parse --show-toplevel)"
|
||||||
cd $DOTWRYN_PATH
|
cd $DOTWRYN_PATH
|
||||||
|
|
||||||
|
SOURCE_ZSH_SUBMODULE() {
|
||||||
|
local NAME="$1"
|
||||||
|
|
||||||
|
local SUBMODULE_PATH=$(\
|
||||||
|
git config --file "$DOTWRYN_PATH/.gitmodules" --get-regexp "$NAME.path"\
|
||||||
|
| awk '{print $2;}'\
|
||||||
|
)
|
||||||
|
local MODULE="$(ls $DOTWRYN_PATH/$SUBMODULE_PATH/*.module.zsh)"
|
||||||
|
|
||||||
|
source $MODULE
|
||||||
|
}
|
||||||
|
|
||||||
INIT() {
|
INIT() {
|
||||||
git submodule update --init --remote || {
|
git submodule update --init --remote >/dev/null 2>&1 || {
|
||||||
echo 'unable to initialize required submodules'
|
echo 'unable to initialize required submodules'
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
source "$DOTWRYN_PATH/zsh/utils/color.zsh"
|
SOURCE_ZSH_SUBMODULE 'color-zsh'
|
||||||
source "$DOTWRYN_PATH/zsh/utils/user-input.zsh"
|
source "$DOTWRYN_PATH/zsh/utils/user-input.zsh"
|
||||||
STATUS 'starting .wryn install'
|
STATUS 'starting .wryn install'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user