From d25c4bd5e1769df2dc96ad0d210eac90de98a13e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 28 Jan 2020 14:29:15 +0200 Subject: [PATCH] kiss: initial a arg --- kiss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 676fd43..87fc41e 100755 --- a/kiss +++ b/kiss @@ -1170,7 +1170,11 @@ args() { case $action in a|alternatives) if [ "$1" ]; then - : + # Check to see if the package is installed. This + # will exit with an error if it is not. + pkg_list "$1" >/dev/null + + [ "$2" ] || die "No alternative chosen" else log "Alternatives:"