mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-22 01:46:42 +00:00
ref(sh): check exit code rather than stdout
This commit is contained in:
@@ -8,7 +8,7 @@ __init_vim_prettier() {
|
||||
rm -rf "$HOME/.vim/pack/plugins/start/vim-prettier"
|
||||
git clone --depth=1 https://github.com/prettier/vim-prettier.git "$HOME/.vim/pack/plugins/start/vim-prettier"
|
||||
|
||||
if [ -z "$(command -v node)" ]; then
|
||||
if ! command -v node > /dev/null; then
|
||||
export PATH="$HOME/.local/opt/node/bin:$HOME/.local/bin:${PATH}"
|
||||
"$HOME/.local/bin/webi" node
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user