2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
source env.zsh
|
|
|
|
|
|
|
|
install() {
|
|
|
|
_ensure_repo nodenv/nodenv $NODENV_ROOT
|
|
|
|
_ensure_repo nodenv/node-build $NODENV_ROOT/plugins/node-build
|
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
2017-12-31 22:33:49 -08:00
|
|
|
if [[ -n $NODENV_ROOT ]]; then
|
2017-12-05 22:39:10 -08:00
|
|
|
cd $NODENV_ROOT && git pull
|
|
|
|
for ver in $NODENV_ROOT/plugins/*(/); do
|
|
|
|
cd $ver && git pull
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# link() {}
|
|
|
|
|
|
|
|
# clean() {}
|
|
|
|
|
|
|
|
init "$@"
|