improve output when re-installing or switching node versions
authorAJ ONeal <coolaj86@gmail.com>
Sat, 13 Jun 2020 21:17:05 +0000 (15:17 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Sat, 13 Jun 2020 21:17:05 +0000 (15:17 -0600)
node/install.bash

index 7787b897adea9bc66c7330fa6aecfa45c7c5077d..24a92d3f6090a096767a0acf743049f2bd3e4140 100644 (file)
@@ -103,12 +103,6 @@ update_node_home() {
     webi_path_add "$common_node_home/bin"
 }
 
-if [ -x "$new_node" ]; then
-  update_node_home
-  echo "switched to node v${WEBI_VERSION} at $new_node_home"
-  exit 0
-fi
-
 # Test for existing version
 set +e
 cur_node="$(command -v node)"