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