We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nvm_get_arch
/sbin
1 parent 7ba49f8 commit 7f2ccd5Copy full SHA for 7f2ccd5
nvm.sh
@@ -1818,7 +1818,7 @@ nvm_get_arch() {
1818
esac
1819
1820
# If running a 64bit ARM kernel but a 32bit ARM userland, change ARCH to 32bit ARM (armv7l)
1821
- L=$(ls -dl /sbin/init) # if /sbin/init is 32bit executable
+ L=$(ls -dl /sbin/init 2>/dev/null) # if /sbin/init is 32bit executable
1822
if [ "$(uname)" = "Linux" ] && [ "${NVM_ARCH}" = arm64 ] && [ "$(od -An -t x1 -j 4 -N 1 "${L#*-> }")" = ' 01' ]; then
1823
NVM_ARCH=armv7l
1824
HOST_ARCH=armv7l
0 commit comments