`local`s need to be declared and assigned separately, for `ksh`.
parent
46833efd79
commit
032fab7172
12
nvm.sh
12
nvm.sh
|
@ -1357,8 +1357,10 @@ nvm_die_on_prefix() {
|
||||||
# latest io.js version available. The expectation is that any potential io.js
|
# latest io.js version available. The expectation is that any potential io.js
|
||||||
# version later than v3.3.1 will also have Solaris binaries.
|
# version later than v3.3.1 will also have Solaris binaries.
|
||||||
iojs_version_has_solaris_binary() {
|
iojs_version_has_solaris_binary() {
|
||||||
local IOJS_VERSION=$1
|
local IOJS_VERSION
|
||||||
local STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix $IOJS_VERSION)"
|
IOJS_VERSION="$1"
|
||||||
|
local STRIPPED_IOJS_VERSION
|
||||||
|
STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix "$IOJS_VERSION")"
|
||||||
if [ "_$STRIPPED_IOJS_VERSION" = "$IOJS_VERSION" ]; then
|
if [ "_$STRIPPED_IOJS_VERSION" = "$IOJS_VERSION" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@ -1372,9 +1374,11 @@ iojs_version_has_solaris_binary() {
|
||||||
# Currently, node versions starting from v0.8.6 have a Solaris binary
|
# Currently, node versions starting from v0.8.6 have a Solaris binary
|
||||||
# avaliable.
|
# avaliable.
|
||||||
node_version_has_solaris_binary() {
|
node_version_has_solaris_binary() {
|
||||||
local NODE_VERSION=$1
|
local NODE_VERSION
|
||||||
|
NODE_VERSION="$1"
|
||||||
# Error out if $NODE_VERSION is actually an io.js version
|
# Error out if $NODE_VERSION is actually an io.js version
|
||||||
local STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix $NODE_VERSION)"
|
local STRIPPED_IOJS_VERSION
|
||||||
|
STRIPPED_IOJS_VERSION="$(nvm_strip_iojs_prefix $NODE_VERSION)"
|
||||||
if [ "_$STRIPPED_IOJS_VERSION" != "_$NODE_VERSION" ]; then
|
if [ "_$STRIPPED_IOJS_VERSION" != "_$NODE_VERSION" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue