From 26601c07c29303c2936dca5af9966b87016624b7 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:50:33 +0100 Subject: [PATCH] upgrade: maybe using a subshell aint a good idea, let's try with pushd/popd... --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9456974..809b100 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -261,8 +261,8 @@ then ynh_replace_string --match_string="^\s*// installed plugins" --replace_string="&\n $installed_plugins" --target_file="$final_path/config/config.inc.php" # Update JavaScript dependencies - (cd "$final_path" - ./bin/update.sh --version="?" -y) + pushd "$final_path" + ./bin/update.sh --version="?" -y # Store the config file checksum into the app settings ynh_store_file_checksum --file="$final_path/config/config.inc.php" @@ -275,8 +275,8 @@ then #================================================= ynh_script_progression --message="Updating $app core..." --weight=4 - ( cd "$final_path" - ynh_exec_warn ./bin/update.sh --version=$oldversion -y) + ynh_exec_warn ./bin/update.sh --version=$oldversion -y + popd fi #=================================================