From a6a9fe30e47e1cc9e329946fcabc85a0c70f5252 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Tue, 21 Feb 2017 04:23:47 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20qualit=C3=A9=20check=5Fprocess?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/remove | 2 +- scripts/restore | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 49266a2..9e18667 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,7 +1,7 @@ #!/bin/bash # Exit on command errors and treat unset variables as an error -set -eu +set -u source .fonctions # Charge les fonctions génériques habituellement utilisées dans le script diff --git a/scripts/restore b/scripts/restore index c08116e..972a016 100644 --- a/scripts/restore +++ b/scripts/restore @@ -1,6 +1,9 @@ #!/bin/bash # This restore script is adapted to Yunohost >=2.4 +# Exit on command errors and treat unset variables as an error +set -eu + # The parameter $1 is the backup directory location dedicated to the app backup_dir=$1