1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

add ynh_abort_if_errors

This commit is contained in:
Sebastian Gumprich 2017-09-15 20:43:45 +02:00
parent 7f8dc9efd7
commit f6a4d4e1ff
3 changed files with 11 additions and 4 deletions

View file

@ -6,8 +6,8 @@
# MANAGE SCRIPT FAILURE # MANAGE SCRIPT FAILURE
#================================================= #=================================================
# Exit on command errors and treat access to unset variables as an error # Exit if an error occurs during the execution of the script
set -eu ynh_abort_if_errors
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS

View file

@ -6,8 +6,8 @@
# MANAGE SCRIPT FAILURE # MANAGE SCRIPT FAILURE
#================================================= #=================================================
# Exit on command errors and treat access to unset variables as an error # Exit if an error occurs during the execution of the script
set -eu ynh_abort_if_errors
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS

View file

@ -9,6 +9,13 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers 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 # LOAD SETTINGS
#================================================= #=================================================