From 4d028871c26f9ceccbd8a2abede90d030924f2a2 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 3 Dec 2017 18:01:04 +0100 Subject: [PATCH] Minor linter fixes --- scripts/backup | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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