From 6c5e86f62eb425e8f886884d9ff394bff90de277 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Sun, 11 Aug 2019 23:42:00 -0400 Subject: [PATCH] alternative --- bin/nodenv-doctor | 6 ------ test/test_helper.bash | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/bin/nodenv-doctor b/bin/nodenv-doctor index 180d254..e38b1ee 100755 --- a/bin/nodenv-doctor +++ b/bin/nodenv-doctor @@ -113,12 +113,6 @@ elif [ "$num_installs" -eq 1 ]; then if [[ $nodenv_installs == "$NODENV_ROOT"/plugins/* ]]; then nodenv_install_cmd="${nodenv_installs##*/}" nodenv_install_version="$(nodenv "${nodenv_install_cmd#nodenv-}" --version || true)" - echo "COMMANDER" - echo "$PATH" - ls "$NODENV_ROOT/plugins/nodenv-install/bin" - PATH="$NODENV_ROOT/plugins/nodenv-install/bin" command -v nodenv-install - command -v nodenv-install - exit 1 else nodenv_install_version="$("$nodenv_installs" --version || true)" fi diff --git a/test/test_helper.bash b/test/test_helper.bash index 8ccf469..9131061 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -46,7 +46,9 @@ with_nodenv_plugin() { local bin=${2:-$1} local path="$NODENV_ROOT/plugins/$name/bin" mkdir -p "$path" - ln -sf /usr/bin/grep "$path/$bin" # using grep b/c it supports '--version' + # ln -sf /usr/bin/grep "$path/$bin" # using grep b/c it supports '--version' + echo "echo dummy" > "$path/$bin" + chmod +x "$path/$bin" } with_nodes() {