From: Alexander Schmidt Date: Wed, 30 Jul 2014 08:57:02 +0000 (+0200) Subject: Removed some _ functions. Exit at the end of backmeupscotty. X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/commitdiff_plain/10c111b53ee316fa7f2b3dd027730043e4ea92b2 Removed some _ functions. Exit at the end of backmeupscotty. --- 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