From 5a518556916001b7e95324aabb95ea1ede302fd2 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 10 Oct 2018 00:08:49 +0200 Subject: [PATCH] Moved TrapQuit to script entry point --- dev/n_obackup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index eeb659c..5c39cd7 100644 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -7,7 +7,7 @@ PROGRAM="obackup" AUTHOR="(C) 2013-2018 by Orsiris de Jong" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" PROGRAM_VERSION=2.1-RC1 -PROGRAM_BUILD=2018093008 +PROGRAM_BUILD=2018101001 IS_STABLE=no #### Execution order #__WITH_PARANOIA_DEBUG @@ -1776,9 +1776,6 @@ function Init { local hosturiandpath local hosturi - trap TrapStop INT QUIT TERM HUP - trap TrapQuit EXIT - ## Test if target dir is a ssh uri, and if yes, break it down it its values if [ "${REMOTE_SYSTEM_URI:0:6}" == "ssh://" ] && [ "$BACKUP_TYPE" != "local" ]; then REMOTE_OPERATION="yes" @@ -1912,6 +1909,9 @@ function Usage { exit 128 } +#### SCRIPT ENTRY POINT #### +trap TrapQuit EXIT + # Command line argument flags _DRYRUN=false no_maxtime=false