1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

kiss: Simplify argument parsing for remove/install

This commit is contained in:
Dylan Araps 2020-05-19 12:47:27 +03:00
parent b1d54112dd
commit f154c427e4
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

11
kiss
View File

@ -1543,14 +1543,13 @@ args() {
done
;;
i|install)
i|install|r|remove)
pkg_order "$@"
for pkg in $order; do pkg_install "$pkg"; done
;;
r|remove)
pkg_order "$@"
for pkg in $redro; do pkg_remove "$pkg"; done
case $action in
i*) for pkg in $order; do pkg_install "$pkg"; done ;;
r*) for pkg in $redro; do pkg_remove "$pkg"; done
esac
;;
b|build) pkg_build "${@:?No packages installed}" ;;