kiss: minor clean up

This commit is contained in:
Dylan Araps 2020-06-11 11:06:43 +03:00
parent aa4cbae5f9
commit ad8ad409c8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

10
kiss
View File

@ -593,8 +593,8 @@ pkg_build() {
# Finally build and create tarballs for all passed packages and # Finally build and create tarballs for all passed packages and
# dependencies. # dependencies.
for pkg do in=$((in + 1)) for pkg do
log "$pkg" "Building package ($in/$#)" log "$pkg" "Building package ($((in+=1))/$#)"
run_hook pre-extract "$pkg" "$pkg_dir/$pkg" run_hook pre-extract "$pkg" "$pkg_dir/$pkg"
pkg_extract "$pkg" pkg_extract "$pkg"
@ -1221,8 +1221,7 @@ pkg_updates() {
# We're in a repository which is owned by a 3rd # We're in a repository which is owned by a 3rd
# user. Not root or the current user. # user. Not root or the current user.
[ "$user" = root ] || [ "$user" = root ] || log "Dropping to $user for pull"
log "Dropping permissions to $user for pull"
# 'sudo' and 'doas' properly parse command-line # 'sudo' and 'doas' properly parse command-line
# arguments and split them in the common way. 'su' # arguments and split them in the common way. 'su'
@ -1435,8 +1434,7 @@ args() {
log 'update Update the system' log 'update Update the system'
log 'version Package manager version log 'version Package manager version
' '
log 'Installed extensions (kiss-* in PATH)'
log "Installed extensions (kiss-* in \$PATH)"
# shellcheck disable=2046 # shellcheck disable=2046
# see [1] at top of script. # see [1] at top of script.