Skip to content

Commit

Permalink
alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Aug 12, 2019
1 parent 041b60a commit 6c5e86f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions bin/nodenv-doctor
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion test/test_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6c5e86f

Please sign in to comment.