From 205f1e0beeb37a104d48b63dce3f7751f01f3e74 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 22 Aug 2018 18:35:29 +0200 Subject: [PATCH] Fix modules upgrade --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 17d2a78..7941647 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -158,13 +158,13 @@ npm cache clean ynh_exec_warn_less npm update) # Then update the additionnal modules +(cd "$final_path" +npm cache clean while read node_module do echo "Update $node_module" - (cd "$final_path/node_modules/$node_module" - npm cache clean - ynh_exec_warn_less npm update || true) -done <<< "$(ls -1 "$final_path/node_modules")" + ynh_exec_warn_less npm install --upgrade $node_module || true +done <<< "$(ls -1 "$final_path/node_modules" | grep "^ep_")") #================================================= # SPECIFIC UPGRADE