aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-which
blob: a82990d9125ed7b356509773aded4e2e96357e4b (plain)
1
2
3
4
5
6
7
#!/bin/sh -e
# Locate the first instance of a KISS package

[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 1 ;}

{ kiss s "$1" || exit 1 ;} |
    sed 1q