From a5de7236d638afef725c4dcd87cb662c1a55b019 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 14 Mar 2026 10:16:48 -0700 Subject: [PATCH] [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 https://github.com/nvm-sh/nvm/commit/779a34e6a9adcb6528e63d595a7a8838747e7915 / #2469. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index a50601a..a59ec6d 100755 --- a/nvm.sh +++ b/nvm.sh @@ -2162,7 +2162,7 @@ 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 - if [ "$(uname)" = "Linux" ] \ + if [ "$(command uname)" = "Linux" ] \ && [ "${NVM_ARCH}" = arm64 ] \ && [ "$(command od -An -t x1 -j 4 -N 1 "/sbin/init" 2>/dev/null)" = ' 01' ]\ ; then