aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-manifest-tree
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-manifest-tree')
-rwxr-xr-xcontrib/kiss-manifest-tree8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/kiss-manifest-tree b/contrib/kiss-manifest-tree
index 7fcfb8c..609121a 100755
--- a/contrib/kiss-manifest-tree
+++ b/contrib/kiss-manifest-tree
@@ -2,9 +2,7 @@
#
# kiss-manifest-tree - Display all files owned by a package.
-kiss l "${1:-null}"
-
-db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null}
-
+[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ;}
+kiss l "$1" >/dev/null
printf '%s\n' "[$1]:"
-tree -C --fromfile "$db_dir/manifest" | tail -n +2
+tree -C --fromfile "$KISS_ROOT/var/db/kiss/installed/$1/manifest" | sed 1,2d