From 8b7bf371ccef0fbdfe69d8c40786f92a3c01ac15 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 15 Mar 2017 00:18:41 +0100 Subject: [PATCH] + set eu --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b899082..b44d697 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,5 +1,8 @@ #!/bin/bash +# Exit on command errors and treat unset variables as an error +set -eu + source .fonctions # Loads the generic functions usually used in the script source /usr/share/yunohost/helpers # Source YunoHost helpers