From e7f0cd37a983961277fb2749f2cbb863605757c9 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 24 Feb 2017 11:18:06 +0000 Subject: [PATCH] Use of trap '' ERR --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a075222..eb0b5ac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,7 @@ fi sudo yunohost backup create --ignore-hooks --apps $app --name $app-before-upgrade --quiet EXIT_PROPERLY () { - trap '' EXIT + trap '' ERR set +eu sudo yunohost backup restore --ignore-hooks $app-before-upgrade --apps $app --force --quiet # Restore the backup if upgrade failed ynh_die "Upgrade failed. The app was restored to the way it was before the failed upgrade."