mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Tests] fix fake node versions
This commit is contained in:
parent
7f9220dbd8
commit
48196d2436
@ -30,7 +30,7 @@ make_fake_node() {
|
||||
[ -n "${VERSION}" ] || return 1
|
||||
|
||||
local BIN_PATH
|
||||
BIN_PATH="$(nvm_version_path "${VERSION}")/bin"
|
||||
BIN_PATH="$(nvm_version_path "$(nvm_format_version "${VERSION}")")/bin"
|
||||
mkdir -p "${BIN_PATH}" || {
|
||||
echo >&2 'unable to make bin dir'
|
||||
return 2
|
||||
@ -48,7 +48,7 @@ make_fake_iojs() {
|
||||
[ -n "${VERSION}" ] || return 1
|
||||
|
||||
local BIN_PATH
|
||||
BIN_PATH="$(nvm_version_path "iojs-${VERSION}")/bin"
|
||||
BIN_PATH="$(nvm_version_path "$(nvm_format_version "iojs-${VERSION}")")/bin"
|
||||
mkdir -p "${BIN_PATH}" || {
|
||||
echo >&2 'unable to make bin dir'
|
||||
return 2
|
||||
|
Loading…
Reference in New Issue
Block a user