kiss: initial a arg

This commit is contained in:
Dylan Araps 2020-01-28 14:29:15 +02:00
parent 4fcb12ce9f
commit d25c4bd5e1
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

6
kiss
View File

@ -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:"