X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/d0707b3df434a0028ac2e588a8bb7a6a8714d764..055e3ffadca7fb5b75a8625de2005f40c888afa9:/backmeupscotty-example?ds=inline diff --git a/backmeupscotty-example b/backmeupscotty-example index 44d97cd..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_abort { - echo "cleanup_abort" +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" } backmeupscotty $@