From 9db229b8d9f8f39a796d26917600a87bf709d27e Mon Sep 17 00:00:00 2001 From: mbugeia Date: Wed, 26 Oct 2016 00:42:33 +0200 Subject: [PATCH] Fix nodejs-legacy check --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 170617c..b199e56 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -24,7 +24,7 @@ source /usr/share/yunohost/helpers check_or_install_npm() { if ! dpkg -s npm | grep "installed" > /dev/null 2>&1 \ - || dpkg -s nodejs-legacy | grep "installed" > /dev/null 2>&1; then + || ! dpkg -s nodejs-legacy | grep "installed" > /dev/null 2>&1; then sudo apt-get update sudo apt-get install -y npm nodejs-legacy fi