Skip to content

Commit

Permalink
fix: fix version-name hooks issue
Browse files Browse the repository at this point in the history
  • Loading branch information
manlao committed Apr 23, 2021
1 parent 2d59d86 commit 6c71ddc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/nodenv.d/version-name/auto-install.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION}" ] \
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION/v/}" ] \
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION#node-}" ] \
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION#node-v}" ] ; then
nodenv install "$NODENV_VERSION" 1>&2
fi

0 comments on commit 6c71ddc

Please sign in to comment.