From fe1e8f8ef8e8f32e7b8ad7afc1435a2456f36d6c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 13 Jun 2020 15:13:39 -0600 Subject: [PATCH] improve output when re-installing or switching node versions --- node/install.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/install.bash b/node/install.bash index 0302650..7787b89 100644 --- 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 - 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 -- 2.25.1