X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/10c111b53ee316fa7f2b3dd027730043e4ea92b2..d0707b3df434a0028ac2e588a8bb7a6a8714d764:/backmeupscotty?ds=inline diff --git a/backmeupscotty b/backmeupscotty index b3c2703..257c192 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -135,8 +135,19 @@ function cleanup_normal { scottyinfo "No cleanup_normal function was defined." } +function printhelp { + cat < /dev/null @@ -144,9 +155,13 @@ function backmeupscotty { n) BACKUP_RUNEVERYNTHDAY=$OPTARG ;; + h) + printhelp + exit 0 + ;; esac done - + if ! isIncompleteOrNthDay; then scottyinfo "This is not the nth day and no incomplete backup exists." exit 0