From dc6c8204ec4739b75508d57b26dafeba4be6598b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Mar 2021 13:05:32 +0100 Subject: [PATCH] Typo --- scripts/ynh_install_nodejs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/ynh_install_nodejs b/scripts/ynh_install_nodejs index c9d18a0..e28d734 100644 --- a/scripts/ynh_install_nodejs +++ b/scripts/ynh_install_nodejs @@ -3,7 +3,7 @@ ynh_nodejs_try_bash_extension() { if [ -x src/configure ]; then src/configure && make -C src || { - echo "Optional bash extension failed to build, but things will still work normally." + ynh_print_info --message="Optional bash extension failed to build, but things will still work normally." } fi } @@ -85,9 +85,6 @@ ynh_use_nodejs () { # # ynh_install_nodejs will install the version of Node.js provided as argument by using nodenv. # -# nodenv (Node.js Version Management) stores the target Node.js version in a .nodejs_version file created in the target folder (using nodenv local ) -# It then uses that information for every Node.js user that uses nodenv provided Node.js command -# # This helper creates a /etc/profile.d/nodenv.sh that configures PATH environment for nodenv # for every LOGIN user, hence your user must have a defined shell (as opposed to /usr/sbin/nologin) # @@ -118,7 +115,7 @@ ynh_install_nodejs () { test -x /usr/bin/node && mv /usr/bin/node /usr/bin/node_n test -x /usr/bin/npm && mv /usr/bin/npm /usr/bin/npm_n - # Instal or update nodenv + # Install or update nodenv nodenv="$(command -v nodenv $nodenv_install_dir/bin/nodenv | head -1)" if [ -n "$nodenv" ]; then ynh_print_info --message="nodenv already seems installed in \`$nodenv'."