From 415a0df1b018a3544d03050ce04ea6c7928d2301 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 11 Dec 2023 17:09:43 +0100 Subject: [PATCH] Forgot to move to the appropriate workdir before running npm command >_> --- scripts/upgrade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index de234d8..9984f99 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,12 +148,14 @@ if ynh_compare_current_package_version --comparison lt --version 1.9.1~ynh2 then if ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ls 2>/dev/null | grep -q ep_table_of_contents then - ynh_script_progression --message="Uninstalling ep_table_of_contents..." --weight=90 - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm uninstall ep_table_of_contents + ynh_script_progression --message="Uninstalling ep_table_of_contents..." --weight=2 + pushd "$install_dir" + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm uninstall ep_table_of_contents + popd fi fi -ynh_script_progression --message="Installing Etherpad plugins..." --weight=90 +ynh_script_progression --message="Installing Etherpad plugins..." --weight=10 pushd "$install_dir" # Add Left/Center/Right/Justify to lines of text in a pad