diff options
Diffstat (limited to 'publish-purge')
-rwxr-xr-x | publish-purge | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/publish-purge b/publish-purge index 8c464ef..ffda30b 100755 --- a/publish-purge +++ b/publish-purge @@ -42,7 +42,7 @@ usage: $0 [OPTIONS] OPTIONS: -h Show this message. - -n Do not acutally purge directories, but show what would be done. + -n Do not actually purge directories, but show what would be done. -v Give verbose output. Be more verbose with -vv. EOF } @@ -54,6 +54,7 @@ while getopts "hnv" OPTION; do case $OPTION in h) usage + exit 0 ;; n) optDonot=1 @@ -70,12 +71,12 @@ base="" [ -e ~/.publish-purge.cfg ] && . ~/.publish-purge.cfg if [ -z "$base" ]; then - echo >&2 "%0: Please setup \$base in ~/.publish-purge.cfg" + echo >&2 "$0: Please setup \$base in ~/.publish-purge.cfg" exit 1 fi if ! [ -e "$base" ]; then - echo >&2 "%0: $base does not exist or is not a directory" + echo >&2 "$0: $base does not exist or is not a directory" exit 1 fi |