aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-changelog
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-changelog')
-rwxr-xr-xcontrib/kiss-changelog5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/kiss-changelog b/contrib/kiss-changelog
index fd4daef..ed323d8 100755
--- a/contrib/kiss-changelog
+++ b/contrib/kiss-changelog
@@ -1,10 +1,7 @@
#!/bin/sh -e
# Print the git log of the specific package
-[ "$1" ] || {
- printf '\033[1;33m-> \033[musage: %s [pkg]\n' "${0##*/}"
- exit 0
-}
+case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]"; exit 0; esac
kiss s "$1" >/dev/null
cd "$(kiss s "$1" | sed 1q)"