From 4f74c36abd064c891ccc31dd24fcb38ca0755161 Mon Sep 17 00:00:00 2001
From: Peter Palfrader <peter@palfrader.org>
Date: Sat, 15 Dec 2012 16:25:28 +0000
Subject: Minor fixes

git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@566 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
---
 publish-purge | 7 ++++---
 1 file 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
 
-- 
cgit v1.2.3