Skip to content

Commit 6c71ddc

Browse files
committed
fix: fix version-name hooks issue
1 parent 2d59d86 commit 6c71ddc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
if [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION}" ] \
2+
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION/v/}" ] \
3+
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION#node-}" ] \
4+
&& [ ! -d "${NODENV_ROOT}/versions/${NODENV_VERSION#node-v}" ] ; then
5+
nodenv install "$NODENV_VERSION" 1>&2
6+
fi

0 commit comments

Comments
 (0)