forked from kiss-community/kiss
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