fix: local declaration of ksh compatibility

master
Sayanee 2015-03-02 01:04:29 +08:00
parent fb48129cd4
commit f8ee25ab5b
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

@ -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