From eb040b37803f0e5457bb8d5c502c5c68db286801 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Mon, 4 Dec 2017 21:36:42 +0100 Subject: [PATCH] Minor linter fixes --- scripts/backup | 9 ++++++++- scripts/restore | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index de9fd26..4210504 100755 --- a/scripts/backup +++ b/scripts/backup @@ -21,6 +21,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 #================================================= @@ -82,5 +89,5 @@ if [ -z $backup_core_only ] then ynh_backup "/home/yunohost.app/${app}/data" else - echo "Data dir will not saved, because backup_core_only is set." >&2 + echo "Data dir will not be saved, because backup_core_only is set." >&2 fi diff --git a/scripts/restore b/scripts/restore index 71b0a30..b69a524 100755 --- a/scripts/restore +++ b/scripts/restore @@ -21,6 +21,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 #=================================================