aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-depends-finder
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-depends-finder')
-rwxr-xr-xcontrib/kiss-depends-finder4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/kiss-depends-finder b/contrib/kiss-depends-finder
index 91167a3..31320ed 100755
--- a/contrib/kiss-depends-finder
+++ b/contrib/kiss-depends-finder
@@ -1,7 +1,7 @@
#!/bin/sh -e
# Find missing dependencies by parsing 'ldd'
-[ "$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 l "$1" >/dev/null
@@ -31,7 +31,7 @@ while read -r file; do
# Skip listing these packages as dependencies.
case $pkg in
- musl|gcc|$1) ;;
+ musl|gcc|"$1") ;;
*) printf '%s\n' "$pkg" ;;
esac
done