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-depends-finder | |
parent | 395d0f1a6019c176de72ce3aa30f57eb810b0d9b (diff) | |
download | cpt-7a4fcf554c75c5f73bf51f840e72ba7fbedb7e60.tar.gz |
contrib: additions, usage, simplifications
FossilOrigin-Name: 8d7d95914b0d1d981416c4fe1511987af3dd0170d436ee2176de9cb279988dd0
Diffstat (limited to 'contrib/kiss-depends-finder')
-rwxr-xr-x | contrib/kiss-depends-finder | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/kiss-depends-finder b/contrib/kiss-depends-finder index 432a105..403723e 100755 --- a/contrib/kiss-depends-finder +++ b/contrib/kiss-depends-finder @@ -2,7 +2,9 @@ # # Find missing dependencies by parsing 'ldd'. -kiss l "${1:-null}" >/dev/null +[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ;} + +kiss l "$1" >/dev/null db_dir=$KISS_ROOT/var/db/kiss/installed grep=$(command -v ggrep) || grep='grep' |