Merge pull request #1665 from norpol/fix_issue_1664_unassigned_variable_20171115
Fix #1664: unassigned variable
commit
4b48556e92
1
nvm.sh
1
nvm.sh
|
@ -514,6 +514,7 @@ nvm_remote_versions() {
|
||||||
local NVM_LS_REMOTE_IOJS_EXIT_CODE
|
local NVM_LS_REMOTE_IOJS_EXIT_CODE
|
||||||
NVM_LS_REMOTE_IOJS_EXIT_CODE=0
|
NVM_LS_REMOTE_IOJS_EXIT_CODE=0
|
||||||
local NVM_LS_REMOTE_IOJS_OUTPUT
|
local NVM_LS_REMOTE_IOJS_OUTPUT
|
||||||
|
NVM_LS_REMOTE_IOJS_OUTPUT=
|
||||||
if [ -z "${NVM_LTS-}" ] && ( \
|
if [ -z "${NVM_LTS-}" ] && ( \
|
||||||
[ -z "${NVM_FLAVOR-}" ] || [ "${NVM_FLAVOR-}" = "${NVM_IOJS_PREFIX}" ] \
|
[ -z "${NVM_FLAVOR-}" ] || [ "${NVM_FLAVOR-}" = "${NVM_IOJS_PREFIX}" ] \
|
||||||
); then
|
); then
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -ex
|
set -eux
|
||||||
|
|
||||||
die () { echo "$@" ; exit 1; }
|
die () { echo "$@" ; exit 1; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue