kiss: remove reverse ordering for kiss r (needs to be replaced)

This commit is contained in:
Dylan Araps 2021-07-08 13:04:28 +03:00
parent 3e08cf1ff2
commit 91b39a0f97
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 8 additions and 2 deletions

10
kiss
View File

@ -1502,7 +1502,7 @@ args() {
esac
;;
b|build|c|checksum|d|download|i|install|l|list|r|remove)
b|build|c|checksum|d|download|i|install|l|list)
case ${action%%"${action#?}"}-$* in
i-*\!*|i-*\**|i-*\[*|i-*\]*)
die "Arguments contain invalid characters: '!*[]' ($*)"
@ -1528,6 +1528,12 @@ args() {
# shellcheck disable=2046,2086
set -- $order
;;
r|remove)
case $* in *\**|*\!*|*\[*|*\]*|*/*)
die "Invalid argument: '!*[]/' ($*)"
esac
;;
esac
# Rerun the script as root with a fixed environment if needed. We sadly
@ -1597,7 +1603,7 @@ args() {
b|build) pkg_build_all "${@:?No packages installed}" ;;
d|download) for pkg do pkg_source "$pkg"; done ;;
l|list) pkg_list "$@" ;;
r|remove) for pkg in $redro; do pkg_remove "$pkg"; done ;;
r|remove) for pkg do pkg_remove "$pkg"; done ;;
s|search) for pkg do pkg_find "$pkg" all; done ;;
u|update) pkg_updates ;;
v|version) printf '5.4.8\n' ;;