X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/333d926de93d4427e4c32c52e7dd18649132a00b..5a7e954f6cac6da23598c140cea07f4cd7a91148:/backmeupscotty-example diff --git a/backmeupscotty-example b/backmeupscotty-example index 9418571..a028abe 100755 --- a/backmeupscotty-example +++ b/backmeupscotty-example @@ -12,14 +12,11 @@ SYNC_EXC="/gack,/gugu/*" function prepare { echo "prepare" + sleep 5 } -function cleanup_normal { - echo "cleanup" +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" } -function cleanup_abrt { - echo "cleanup_abrt" -} - -backmeupscotty +backmeupscotty $@