Skip to content
Snippets Groups Projects
Commit a334d63e authored by Keegan Mullaney's avatar Keegan Mullaney
Browse files

execute only on success

parent 8eefdece
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,22 +48,22 @@ qc_nvm() {
# install nodejs
nvm install "$node_v"
 
if [[ $? -eq 0 ]] ; then
if [ $? -eq 0 ]; then
echo "setting nvm default to $node_v"
nvm alias default "$node_v"
fi
 
# check which node and npm
echo "checking which node"
which node
echo "checking which npm"
which npm
# check which node and npm
echo "checking which node"
which node
echo "checking which npm"
which npm
 
# check npm version
echo "checking npm version"
npm -v
# check npm version
echo "checking npm version"
npm -v
 
lkm_notify "After switching node versions, remember to run \`npm build\`."
lkm_notify "After switching node versions, remember to run \`npm build\`."
fi
 
RET="$?"
lkm_debug
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment