mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Use TRAP in backup and restore
This commit is contained in:
parent
74034f5513
commit
8e0d948290
2 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
# Active trap pour arrêter le script si une erreur est détectée.
|
||||
TRAP_ON
|
||||
|
||||
# See comments in install script
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
# Active trap pour arrêter le script si une erreur est détectée.
|
||||
TRAP_ON
|
||||
|
||||
# See comments in install script
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue