Default value for $arch

This commit is contained in:
Maniack Crudelis 2019-02-22 15:38:04 +01:00 committed by GitHub
parent 7342f894e5
commit 0a84e2f226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ ynh_install_nodejs () {
local arch local arch
# Manage arguments with getopts # Manage arguments with getopts
ynh_handle_getopts_args "$@" ynh_handle_getopts_args "$@"
arch=${arch:-}
# Create $n_install_dir # Create $n_install_dir
mkdir -p "$n_install_dir" mkdir -p "$n_install_dir"