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:
parent
b1d54112dd
commit
f154c427e4
11
kiss
11
kiss
@ -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}" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user