From 66bc921c4a466411edbd2dbc2d18ec23d5203c0d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Jun 2020 19:11:56 +0200 Subject: [PATCH] fix stupid mistake --- data/helpers.d/nodejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/nodejs b/data/helpers.d/nodejs index 5cb5c4fae..ba9225293 100644 --- a/data/helpers.d/nodejs +++ b/data/helpers.d/nodejs @@ -125,7 +125,7 @@ ynh_install_nodejs () { test -x /usr/bin/npm && mv /usr/bin/npm /usr/bin/npm_n # If n is not previously setup, install it - if ! type $(n --version > /dev/null 2>&1) + if ! test $(n --version > /dev/null 2>&1) then ynh_install_n elif dpkg --compare-version "$($n_install_dir/bin/n --version | cut -d" " -f2)" lt "6.5.1"