diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 12:29:15 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 12:29:15 +0000 |
commit | 7e0737673c16699132aa60d564ed731a175885b4 (patch) | |
tree | 18f043dacd6aebd889df4e15ead06ffa44ea0edf | |
parent | e8e4fcff0e60ca108084138dba19b11aa3426723 (diff) | |
download | cpt-7e0737673c16699132aa60d564ed731a175885b4.tar.gz |
kiss: initial a arg
FossilOrigin-Name: ea23d8c7eacc23ac8e2026884970f62d63f8a85f144597ac1ce38ffa36b80efb
-rwxr-xr-x | kiss | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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:" |