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:
parent
41f07c5eab
commit
9db229b8d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue