Update data/helpers.d/nodejs

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Éric Gaspar 2020-06-04 15:04:02 +02:00 committed by GitHub
parent 63e6abdf1e
commit c62527a0af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ ynh_install_nodejs () {
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 $n_version
elif dpkg --compare-versions "$($n_install_dir/bin/n --version)" lt $n_version
then
ynh_install_n
fi