From 8e0d9482907d3303087c1936944ec636f0162126 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Thu, 22 Dec 2016 13:20:20 +0000 Subject: [PATCH] Use TRAP in backup and restore --- scripts/backup | 3 +++ scripts/restore | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/backup b/scripts/backup index 44c3f05..9afcdf5 100755 --- a/scripts/backup +++ b/scripts/backup @@ -3,6 +3,9 @@ # Exit on command errors and treat unset variables as an error set -eu +# Active trap pour arrêter le script si une erreur est détectée. +TRAP_ON + # See comments in install script app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/restore b/scripts/restore index 311a5f7..d1e12cf 100755 --- a/scripts/restore +++ b/scripts/restore @@ -6,6 +6,9 @@ # Exit on command errors and treat unset variables as an error set -eu +# Active trap pour arrêter le script si une erreur est détectée. +TRAP_ON + # See comments in install script app=$YNH_APP_INSTANCE_NAME