From e14d49247810d8e193131e0a0f70f0cbfd89e278 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 27 May 2018 13:07:09 +0200 Subject: [PATCH] Fix linter errors --- manifest.json | 6 +++--- scripts/backup | 16 +++++++--------- scripts/restore | 16 +++++++--------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/manifest.json b/manifest.json index dddcd71..947f5bd 100644 --- a/manifest.json +++ b/manifest.json @@ -3,15 +3,15 @@ "id": "jirafeau", "packaging_format": 1, "requirements": { - "yunohost": ">= 2.4.0" + "yunohost": ">= 2.7.12" }, "description": { "en": "Upload a file in a simple way and give a unique link to it", "fr": "Hébergez simplement un fichier et partagez-le avec un lien unique" }, "url": "https://gitlab.com/mojo42/Jirafeau", - "version": "3.4.1~ynh1", - "license": "AGPLv3", + "version": "3.4.1~ynh2", + "license": "AGPL-3.0-only", "maintainer": { "name": "julien", "email": "julien.malik@paraiso.me" diff --git a/scripts/backup b/scripts/backup index d71c4f2..3c83d69 100644 --- a/scripts/backup +++ b/scripts/backup @@ -1,14 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC STARTING -#================================================= -# MANAGE FAILURE OF THE SCRIPT -#================================================= - -# Exit on command errors and treat unset variables as an error -set -eu - #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -21,6 +12,13 @@ fi source _common.sh source /usr/share/yunohost/helpers +#================================================= +# MANAGE SCRIPT FAILURE +#================================================= + +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + #================================================= # LOAD SETTINGS #================================================= diff --git a/scripts/restore b/scripts/restore index 6b84bbb..4d7ccd3 100644 --- a/scripts/restore +++ b/scripts/restore @@ -1,14 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC STARTING -#================================================= -# MANAGE FAILURE OF THE SCRIPT -#================================================= - -# Exit on command errors and treat unset variables as an error -set -eu - #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -21,6 +12,13 @@ set -eu # source _common.sh source /usr/share/yunohost/helpers +#================================================= +# MANAGE SCRIPT FAILURE +#================================================= + +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + #================================================= # LOAD SETTINGS #=================================================