mirror of
https://github.com/deajan/obackup.git
synced 2026-02-06 15:15:16 +01:00
Moved trap functions later in init phase
This commit is contained in:
@@ -1457,11 +1457,6 @@ function RotateBackups {
|
||||
fi
|
||||
}
|
||||
|
||||
function SetTraps {
|
||||
trap TrapStop INT QUIT TERM HUP
|
||||
trap TrapQuit EXIT
|
||||
}
|
||||
|
||||
function Init {
|
||||
__CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG
|
||||
|
||||
@@ -1469,6 +1464,9 @@ 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"
|
||||
@@ -1671,7 +1669,6 @@ function GetCommandlineArguments {
|
||||
done
|
||||
}
|
||||
|
||||
SetTraps
|
||||
GetCommandlineArguments "$@"
|
||||
if [ "$_DECRYPT_MODE" == true ]; then
|
||||
CheckCryptEnvironnment
|
||||
|
||||
Reference in New Issue
Block a user