mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
improve output when re-installing or switching node versions
This commit is contained in:
+3
-3
@@ -121,11 +121,11 @@ if [ -n "$cur_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
|
||||
if [ -x "$new_node_home/bin/node" ]; then
|
||||
if [ -x "$new_node" ]; then
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user