projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b562674
)
improve output when re-installing or switching node versions
author
AJ ONeal
<coolaj86@gmail.com>
Sat, 13 Jun 2020 21:13:39 +0000
(15:13 -0600)
committer
AJ ONeal
<coolaj86@gmail.com>
Sat, 13 Jun 2020 21:13:39 +0000
(15:13 -0600)
node/install.bash
patch
|
blob
|
history
diff --git
a/node/install.bash
b/node/install.bash
index 0302650da7dd6dc4a7ebd04fff62265066b3b67f..7787b897adea9bc66c7330fa6aecfa45c7c5077d 100644
(file)
--- a/
node/install.bash
+++ b/
node/install.bash
@@
-121,11
+121,11
@@
if [ -n "$cur_node" ]; then
exit 0
else
if [ "$cur_node" != "$common_node_home/bin/node" ]; then
exit 0
else
if [ "$cur_node" != "$common_node_home/bin/node" ]; then
- echo "WARN: possible conflict between node v${WEBI_VERSION} and
v
${cur_node_version} at ${cur_node}"
+ echo "WARN: possible conflict between node v${WEBI_VERSION} and ${cur_node_version} at ${cur_node}"
fi
fi
- if [ -x "$new_node
_home/bin/node
" ]; then
+ if [ -x "$new_node" ]; then
update_node_home
update_node_home
- echo "switched to node${WEBI_VERSION} at $new_node_home"
+ echo "switched to node
v
${WEBI_VERSION} at $new_node_home"
exit 0
fi
fi
exit 0
fi
fi