mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
parent
ef3b20c21e
commit
a82edf40ba
2
nvm.sh
2
nvm.sh
@ -1880,7 +1880,7 @@ nvm_get_arch() {
|
|||||||
# change ARCH to 32bit ARM (armv7l) if /sbin/init is 32bit executable
|
# change ARCH to 32bit ARM (armv7l) if /sbin/init is 32bit executable
|
||||||
local L
|
local L
|
||||||
if [ "$(uname)" = "Linux" ] && [ "${NVM_ARCH}" = arm64 ] &&
|
if [ "$(uname)" = "Linux" ] && [ "${NVM_ARCH}" = arm64 ] &&
|
||||||
L="$(ls -dl /sbin/init 2>/dev/null)" &&
|
L="$(command ls -dl /sbin/init 2>/dev/null)" &&
|
||||||
[ "$(od -An -t x1 -j 4 -N 1 "${L#*-> }")" = ' 01' ]; then
|
[ "$(od -An -t x1 -j 4 -N 1 "${L#*-> }")" = ' 01' ]; then
|
||||||
NVM_ARCH=armv7l
|
NVM_ARCH=armv7l
|
||||||
HOST_ARCH=armv7l
|
HOST_ARCH=armv7l
|
||||||
|
Loading…
Reference in New Issue
Block a user