[Fix] nvm_get_arch: add command prefix to uname call

Other `uname` calls in the file use `command uname` to bypass any user aliases or functions.
This one was missing it.

Bug introduced in 779a34e6a9 / #2469.
This commit is contained in:
Jordan Harband
2026-03-14 10:16:48 -07:00
parent d2fca5f0ec
commit a5de7236d6

2
nvm.sh
View File

@@ -2162,7 +2162,7 @@ nvm_get_arch() {
# If running a 64bit ARM kernel but a 32bit ARM userland, # If running a 64bit ARM kernel but a 32bit ARM userland,
# change ARCH to 32bit ARM (armv7l) if /sbin/init is 32bit executable # change ARCH to 32bit ARM (armv7l) if /sbin/init is 32bit executable
if [ "$(uname)" = "Linux" ] \ if [ "$(command uname)" = "Linux" ] \
&& [ "${NVM_ARCH}" = arm64 ] \ && [ "${NVM_ARCH}" = arm64 ] \
&& [ "$(command od -An -t x1 -j 4 -N 1 "/sbin/init" 2>/dev/null)" = ' 01' ]\ && [ "$(command od -An -t x1 -j 4 -N 1 "/sbin/init" 2>/dev/null)" = ' 01' ]\
; then ; then