diff options
author | merakor <cem@ckyln.com> | 2020-04-20 18:11:43 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-20 18:11:43 +0000 |
commit | 7a4fcf554c75c5f73bf51f840e72ba7fbedb7e60 (patch) | |
tree | 4e0c47c6a2d14295a7f48553793d11008fed24cc /contrib/kiss-manifest-tree | |
parent | 395d0f1a6019c176de72ce3aa30f57eb810b0d9b (diff) | |
download | cpt-7a4fcf554c75c5f73bf51f840e72ba7fbedb7e60.tar.gz |
contrib: additions, usage, simplifications
FossilOrigin-Name: 8d7d95914b0d1d981416c4fe1511987af3dd0170d436ee2176de9cb279988dd0
Diffstat (limited to 'contrib/kiss-manifest-tree')
-rwxr-xr-x | contrib/kiss-manifest-tree | 8 |
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 |