summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2012-12-15 16:25:28 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2012-12-15 16:25:28 +0000
commit4f74c36abd064c891ccc31dd24fcb38ca0755161 (patch)
treebde3c3fe8a20283e14eb4d5258382619bbef9805
parenta91e9967df7530c37ce16494c01201f5c858044f (diff)
Minor fixes
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@566 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xpublish-purge7
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