aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-10 09:35:24 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-10 09:35:24 +0000
commitf3293b99cb84d2e5b688b84a6653e7b9e4d632dd (patch)
treeed11e711b0337bcfadd2700e31df2070a8763c2e
parent265dc48730fa2b4ffbb3fdb51dfa04e0e06a24ae (diff)
downloadcpt-f3293b99cb84d2e5b688b84a6653e7b9e4d632dd.tar.gz
kiss: cleanup
FossilOrigin-Name: 6259b4119160685b241a3461836bd3a8ea7bd8a56b3d5733d5548adfbd6427d3
-rwxr-xr-xkiss9
1 files changed, 3 insertions, 6 deletions
diff --git a/kiss b/kiss
index 12df2d7..5dbbd44 100755
--- a/kiss
+++ b/kiss
@@ -830,7 +830,7 @@ pkg_updates() {
# Compare installed packages to repository packages.
[ "$db_ver-$db_rel" != "$re_ver-$re_rel" ] && {
printf '%s\n' "$pkg_name $db_ver-$db_rel ==> $re_ver-$re_rel"
- outdated="$outdated $pkg_name "
+ outdated="$outdated$pkg_name "
}
done
@@ -862,16 +862,13 @@ pkg_updates() {
return
}
- # Turn the string of outdated packages into a 'list'.
- set -- $outdated
-
- log "Packages to update: $*"
+ log "Packages to update: ${outdated% }"
# Tell 'pkg_build' to always prompt before build.
pkg_update=1
# Build all packages requiring an update.
- pkg_build "$@"
+ pkg_build $outdated
log "Updated all packages"
}