kiss: arg clean up

This commit is contained in:
Dylan Araps 2021-07-06 21:35:37 +03:00
parent 47d057a52c
commit caff0ef981
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

11
kiss
View File

@ -1600,18 +1600,13 @@ args() {
done
;;
i|install|r|remove)
case $action in
i*) for pkg do pkg_install "$pkg"; done ;;
r*) for pkg in $redro; do pkg_remove "$pkg"; done
esac
;;
i|install) for pkg do pkg_install "$pkg"; done ;;
b|build) pkg_build_all "${@:?No packages installed}" ;;
d|download) for pkg do pkg_source "$pkg"; done ;;
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
r|remove) for pkg in $redro; do pkg_remove "$pkg"; done ;;
s|search) for pkg do pkg_find "$pkg" all; done ;;
u|update) pkg_updates ;;
v|version) printf '5.4.7\n' ;;
'')