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, 2 insertions, 6 deletions
diff --git a/contrib/kiss-manifest-tree b/contrib/kiss-manifest-tree
index 995af9d..7fcfb8c 100755
--- a/contrib/kiss-manifest-tree
+++ b/contrib/kiss-manifest-tree
@@ -2,13 +2,9 @@
#
# kiss-manifest-tree - Display all files owned by a package.
-db_dir=$KISS_ROOT/var/db/kiss/installed/${1-null}
+kiss l "${1:-null}"
-# Check if package is installed and exit if it is not.
-[ -d "$db_dir" ] || {
- printf '%s\n' "error: '$1' not installed." >&2
- exit 1
-}
+db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null}
printf '%s\n' "[$1]:"
tree -C --fromfile "$db_dir/manifest" | tail -n +2