]> git.treefish.org Git - backmeupscotty.git/commitdiff
Removed some _ functions. Exit at the end of backmeupscotty.
authorAlexander Schmidt <alex@treefish.org>
Wed, 30 Jul 2014 08:57:02 +0000 (10:57 +0200)
committerAlexander Schmidt <alex@treefish.org>
Wed, 30 Jul 2014 08:57:02 +0000 (10:57 +0200)
backmeupscotty

index 07a20496a054dc83c54b6351109d837dd6ce4d9d..b3c270389a19cef8603d81a8fb9a4a9a638f88f0 100644 (file)
@@ -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