1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00

Fix nodejs-legacy check

This commit is contained in:
mbugeia 2016-10-26 00:42:33 +02:00
parent 41f07c5eab
commit 9db229b8d9

View file

@ -24,7 +24,7 @@ source /usr/share/yunohost/helpers
check_or_install_npm() { check_or_install_npm() {
if ! dpkg -s npm | grep "installed" > /dev/null 2>&1 \ 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 update
sudo apt-get install -y npm nodejs-legacy sudo apt-get install -y npm nodejs-legacy
fi fi