mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
Rename the variable in nvm_get_arch to avoid collision with aliases in zsh
Address #2963
This commit is contained in:
parent
e6fa80cb61
commit
2d36937acd
6
nvm.sh
6
nvm.sh
@ -1923,10 +1923,10 @@ nvm_get_arch() {
|
||||
|
||||
# If running a 64bit ARM kernel but a 32bit ARM userland,
|
||||
# change ARCH to 32bit ARM (armv7l) if /sbin/init is 32bit executable
|
||||
local L
|
||||
local LIST_SBIN_INIT
|
||||
if [ "$(uname)" = "Linux" ] && [ "${NVM_ARCH}" = arm64 ] &&
|
||||
L="$(command ls -dl /sbin/init 2>/dev/null)" &&
|
||||
[ "$(od -An -t x1 -j 4 -N 1 "${L#*-> }")" = ' 01' ]; then
|
||||
LIST_SBIN_INIT="$(command ls -dl /sbin/init 2>/dev/null)" &&
|
||||
[ "$(od -An -t x1 -j 4 -N 1 "${LIST_SBIN_INIT#*-> }")" = ' 01' ]; then
|
||||
NVM_ARCH=armv7l
|
||||
HOST_ARCH=armv7l
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user