From eb595bbb9751ca386922c99057e54dd5a76a2e5a Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 6 Apr 2021 22:43:07 +0200 Subject: [PATCH] Handle failing plugin upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index baa857d..455d007 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -143,7 +143,7 @@ find "$final_path" -type d -exec chmod +s {} \; ynh_script_progression --message="Updating all plugins..." --weight=1 pushd "$final_path" - yes N | ynh_exec_warn_less exec_as $app php${YNH_PHP_VERSION} bin/gpm update --all-yes --no-interaction + yes N | ynh_exec_warn_less exec_as $app php${YNH_PHP_VERSION} bin/gpm update --all-yes --no-interaction || ynh_print_warn --message="Automatic plugin upgrade has failed, you can upgrade them from your Grav admin panel." popd #=================================================