From 049a86022f397d87777b93768e10ce405d5e6d2c Mon Sep 17 00:00:00 2001 From: Phileas Lebada Date: Wed, 15 Nov 2017 17:17:57 +0100 Subject: [PATCH 1/2] Add empty value to local variable --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index 99b47cd..472b20d 100644 --- a/nvm.sh +++ b/nvm.sh @@ -514,6 +514,7 @@ nvm_remote_versions() { local NVM_LS_REMOTE_IOJS_EXIT_CODE NVM_LS_REMOTE_IOJS_EXIT_CODE=0 local NVM_LS_REMOTE_IOJS_OUTPUT + NVM_LS_REMOTE_IOJS_OUTPUT= if [ -z "${NVM_LTS-}" ] && ( \ [ -z "${NVM_FLAVOR-}" ] || [ "${NVM_FLAVOR-}" = "${NVM_IOJS_PREFIX}" ] \ ); then From be171bba33adb5c5210c2d347a914bcf6e3772bf Mon Sep 17 00:00:00 2001 From: Phileas Lebada Date: Wed, 15 Nov 2017 17:19:05 +0100 Subject: [PATCH 2/2] Add unset-variable as exit error --- test/installation_node/install LTS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/installation_node/install LTS b/test/installation_node/install LTS index d0c07a2..e5638e2 100755 --- a/test/installation_node/install LTS +++ b/test/installation_node/install LTS @@ -1,6 +1,6 @@ #!/bin/sh -set -ex +set -eux die () { echo "$@" ; exit 1; }