From: Alexander Schmidt Date: Wed, 30 Jul 2014 09:21:41 +0000 (+0200) Subject: Added helptext. X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/commitdiff_plain/d0707b3df434a0028ac2e588a8bb7a6a8714d764 Added helptext. --- 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