From f8ee25ab5bbb2ddd439c210542ef736cb55283c6 Mon Sep 17 00:00:00 2001 From: Sayanee Date: Mon, 2 Mar 2015 01:04:29 +0800 Subject: [PATCH] fix: local declaration of ksh compatibility --- nvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index da7cef0..317c28f 100755 --- a/nvm.sh +++ b/nvm.sh @@ -936,7 +936,8 @@ nvm_install_node_binary() { if [ -n "$NVM_OS" ]; then if nvm_binary_available "$VERSION"; then - nvm_arch="$(nvm_get_arch)" + local NVM_ARCH + NVM_ARCH="$(nvm_get_arch)" if [ $nvm_arch = "armv6l" ]; then nvm_arch="arm-pi" fi