From c7bd8441c2a7ec040482336e95e92d5181329ee3 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 25 Feb 2017 00:12:07 +0000 Subject: [PATCH 1/4] Adjust set -eu & set -u environment --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index f7c35f8..88947a2 100644 --- a/scripts/backup +++ b/scripts/backup @@ -1,5 +1,5 @@ #!/bin/bash - +set -eu # Source app helpers source /usr/share/yunohost/helpers From 4044658ce9ea7a335bb631f6a08ea87474fab9e7 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 25 Feb 2017 00:12:52 +0000 Subject: [PATCH 2/4] add set -u for remove script --- scripts/remove | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/remove b/scripts/remove index fa70c40..aec41e7 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,4 +1,5 @@ #!/bin/bash +set -u source .fonctions # Charge les fonctions génériques habituellement utilisées dans le script From 85ad4a1f5c56d038a5a402b9e76b5138ef0ae235 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 25 Feb 2017 00:13:26 +0000 Subject: [PATCH 3/4] Add set -eu --- scripts/restore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore b/scripts/restore index fdbe91d..ee63a55 100644 --- a/scripts/restore +++ b/scripts/restore @@ -1,4 +1,5 @@ #!/bin/bash +set -eu # Source app helpers source /usr/share/yunohost/helpers From a986df6c31e57ca36abd5207a9d315b1c7d34464 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 25 Feb 2017 00:13:46 +0000 Subject: [PATCH 4/4] Add set -eu --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 0773c29..e6e8bd2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,4 +1,5 @@ #!/bin/bash +set -eu source .fonctions # Charge les fonctions génériques habituellement utilisées dans le script