From 10c111b53ee316fa7f2b3dd027730043e4ea92b2 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Wed, 30 Jul 2014 10:57:02 +0200 Subject: [PATCH] Removed some _ functions. Exit at the end of backmeupscotty. --- backmeupscotty | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/backmeupscotty b/backmeupscotty index 07a2049..b3c2703 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -131,18 +131,10 @@ function prepare { scottyinfo "No prepare function was defined." } -function _prepare { - prepare -} - function cleanup_normal { scottyinfo "No cleanup_normal function was defined." } -function _cleanup_normal { - cleanup_normal -} - function backmeupscotty { while getopts "qn:" opt; do case $opt in @@ -162,11 +154,13 @@ function backmeupscotty { trap _cleanup_abort EXIT - _prepare + prepare scottysync - _cleanup_normal + cleanup_normal trap deleteLock EXIT + + exit 0 } if ! mkdir /tmp/$(basename $0).lock; then -- 2.39.5