From 7a4fcf554c75c5f73bf51f840e72ba7fbedb7e60 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 20 Apr 2020 18:11:43 +0000 Subject: contrib: additions, usage, simplifications FossilOrigin-Name: 8d7d95914b0d1d981416c4fe1511987af3dd0170d436ee2176de9cb279988dd0 --- contrib/kiss-manifest | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'contrib/kiss-manifest') diff --git a/contrib/kiss-manifest b/contrib/kiss-manifest index 39a01d9..167738c 100755 --- a/contrib/kiss-manifest +++ b/contrib/kiss-manifest @@ -1,9 +1,7 @@ #!/bin/sh -ef # # kiss-manifest - Display all files owned by a package. +[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} " ; exit 0 ;} -kiss l "${1:-null}" >/dev/null - -db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null} - -cat "$db_dir/manifest" 2>/dev/null +kiss l "$1" >/dev/null +cat "$KISS_ROOT/var/db/kiss/installed/$1/manifest" 2>/dev/null -- cgit v1.2.3