aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-22 16:31:13 +0000
committermerakor <cem@ckyln.com>2020-03-22 16:31:13 +0000
commit5dea86f9978cff2e37fa3678746a64f15878ea62 (patch)
treee42787c81b9208b71af24da9f6ceacc8152b61c9
parentad05cb004c52242891c9e52cdc51f5299a8c9e04 (diff)
downloadcpt-5dea86f9978cff2e37fa3678746a64f15878ea62.tar.gz
kiss: Squish some things together
FossilOrigin-Name: 6599ae0696c0b7dc5d6952c1209d4c2492ec516d30b5dff8df9864fe30bb4c37
-rwxr-xr-xkiss20
1 files changed, 8 insertions, 12 deletions
diff --git a/kiss b/kiss
index e0a61c8..f549154 100755
--- a/kiss
+++ b/kiss
@@ -351,22 +351,18 @@ pkg_order() {
# to be called from 'kiss i'.
order=; redro=; deps=
- for pkg; do
- case $pkg in
- *.tar.*) deps="$deps $pkg " ;;
- *) pkg_depends "$pkg" raw
- esac
- done
+ for pkg; do case $pkg in
+ *.tar.*) deps="$deps $pkg " ;;
+ *) pkg_depends "$pkg" raw
+ esac; done
# Filter the list, only keeping explicit packages.
# The purpose of these two loops is to order the
# argument list based on dependence.
- for pkg in $deps; do
- ! contains "$*" "$pkg" || {
- order="$order $pkg "
- redro=" $pkg $redro"
- }
- done
+ for pkg in $deps; do ! contains "$*" "$pkg" || {
+ order="$order $pkg "
+ redro=" $pkg $redro"
+ }; done
deps=
}