From 6f803c8e9ab8bbc60fd687edf397e7bcc24455bc Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 26 Jul 2017 21:32:00 +0200 Subject: [PATCH] Fix package_linter displayed errors --- scripts/backup | 1 + scripts/install | 1 + scripts/remove | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 5 files changed, 5 insertions(+) diff --git a/scripts/backup b/scripts/backup index d3d961f..bcb2b3a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -3,6 +3,7 @@ # yunohost backup create -n "bozon-test" --ignore-system --apps bozon # yunohost backup delete bozon-test +set -eu if [ ! -e _common.sh ]; then # Get the _common.sh file if it's not in the current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/install b/scripts/install index 6b328fa..61fe699 100644 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,6 @@ #!/bin/bash +set -eu source _common.sh source /usr/share/yunohost/helpers diff --git a/scripts/remove b/scripts/remove index 6e36d13..dde330e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -2,6 +2,7 @@ # to test the functionnality : # yunohost app remove bozon +set -u if [ ! -e _common.sh ]; then # Get the _common.sh file if it's not in the current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/restore b/scripts/restore index 2055b36..f51791e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -4,6 +4,7 @@ # yunohost app remove bozon # yunohost backup restore "bozon-test" +set -eu if [ ! -e _common.sh ]; then # Fetch helpers file if not in current directory sudo cp ../settings/scripts/_common.sh ./_common.sh diff --git a/scripts/upgrade b/scripts/upgrade index a024b5e..f87bc8c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,5 +1,6 @@ #!/bin/bash +set -eu source _common.sh source /usr/share/yunohost/helpers