aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-depends
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-depends')
-rwxr-xr-xcontrib/kiss-depends7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/kiss-depends b/contrib/kiss-depends
index 185a80b..811b4a9 100755
--- a/contrib/kiss-depends
+++ b/contrib/kiss-depends
@@ -2,8 +2,7 @@
#
# kiss-depends - Display a package's dependencies.
-kiss l "${1:-null}" >/dev/null
+[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ;}
-db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null}
-
-cat "$db_dir/depends" 2>/dev/null
+kiss l "$1" >/dev/null
+cat "$KISS_ROOT/var/db/kiss/installed/$1/depends" 2>/dev/null