aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-fork
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-fork')
-rwxr-xr-xcontrib/kiss-fork2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-fork b/contrib/kiss-fork
index f450d26..c0fb99a 100755
--- a/contrib/kiss-fork
+++ b/contrib/kiss-fork
@@ -1,7 +1,7 @@
#!/bin/sh -ef
# Fork a package to the current directory
-[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ;}
+case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac
[ "$KISS_FORCE" ] || {
[ -d "$1" ] && {
printf '\033[1;31m!> \033[m%s\n' "$1 already exists on the current directory" \