Fix $uname

This commit is contained in:
yalh76 2019-02-23 01:23:02 +01:00 committed by GitHub
parent 81178e0841
commit dd28717308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,7 @@ ynh_install_nodejs () {
test -x /usr/bin/npm_n && mv /usr/bin/npm_n /usr/bin/npm
# Install the requested version of nodejs
uname=$(uname -m)
if [[ $uname =~ aarch64 || $uname =~ arm64]]
then
n $nodejs_version --arch=arm64