mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 05:55:36 -07:00
kiss: remove reverse ordering for kiss r (needs to be replaced)
This commit is contained in:
parent
3e08cf1ff2
commit
91b39a0f97
10
kiss
10
kiss
@ -1502,7 +1502,7 @@ args() {
|
|||||||
esac
|
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
|
case ${action%%"${action#?}"}-$* in
|
||||||
i-*\!*|i-*\**|i-*\[*|i-*\]*)
|
i-*\!*|i-*\**|i-*\[*|i-*\]*)
|
||||||
die "Arguments contain invalid characters: '!*[]' ($*)"
|
die "Arguments contain invalid characters: '!*[]' ($*)"
|
||||||
@ -1528,6 +1528,12 @@ args() {
|
|||||||
# shellcheck disable=2046,2086
|
# shellcheck disable=2046,2086
|
||||||
set -- $order
|
set -- $order
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
r|remove)
|
||||||
|
case $* in *\**|*\!*|*\[*|*\]*|*/*)
|
||||||
|
die "Invalid argument: '!*[]/' ($*)"
|
||||||
|
esac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Rerun the script as root with a fixed environment if needed. We sadly
|
# 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}" ;;
|
b|build) pkg_build_all "${@:?No packages installed}" ;;
|
||||||
d|download) for pkg do pkg_source "$pkg"; done ;;
|
d|download) for pkg do pkg_source "$pkg"; done ;;
|
||||||
l|list) pkg_list "$@" ;;
|
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 ;;
|
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
||||||
u|update) pkg_updates ;;
|
u|update) pkg_updates ;;
|
||||||
v|version) printf '5.4.8\n' ;;
|
v|version) printf '5.4.8\n' ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user