diff --git a/scripts/backup b/scripts/backup index 61def6a..4e9d279 100644 --- a/scripts/backup +++ b/scripts/backup @@ -6,8 +6,8 @@ # MANAGE SCRIPT FAILURE #================================================= -# Exit on command errors and treat access to unset variables as an error -set -eu +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors #================================================= # IMPORT GENERIC HELPERS diff --git a/scripts/restore b/scripts/restore index 3fe54fe..962731f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,8 +6,8 @@ # MANAGE SCRIPT FAILURE #================================================= -# Exit on command errors and treat access to unset variables as an error -set -eu +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors #================================================= # IMPORT GENERIC HELPERS diff --git a/scripts/upgrade b/scripts/upgrade index 717e269..8016441 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash #================================================= # GENERIC START @@ -28,7 +28,7 @@ ynh_backup_before_upgrade # Backup the current version of the app ynh_clean_setup () { ynh_restore_upgradebackup # restore it if the upgrade fails } -ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est détectée. +ynh_abort_if_errors # Active trap to stop script execution if an error occurs #================================================= # CHECK THE PATH