forked from kiss-community/kiss
kiss: simplify part of pkg_build()
This commit is contained in:
parent
177588c713
commit
d25fe5841a
18
kiss
18
kiss
@ -656,23 +656,19 @@ pkg_build() {
|
|||||||
(KISS_FORCE=1 args i "$pkg")
|
(KISS_FORCE=1 args i "$pkg")
|
||||||
done
|
done
|
||||||
|
|
||||||
# End here as this was a system update and all packages have been installed.
|
# Turn the explicit packages into a 'list'. See [1] at top of script.
|
||||||
[ "$pkg_update" ] && return
|
|
||||||
|
|
||||||
log "Successfully built package(s)"
|
|
||||||
|
|
||||||
# Turn the explicit packages into a 'list'.
|
|
||||||
# See [1] at top of script.
|
|
||||||
# shellcheck disable=2046,2086
|
# shellcheck disable=2046,2086
|
||||||
set -- $explicit
|
set -- $explicit
|
||||||
|
|
||||||
# Only ask for confirmation if more than one package needs to be installed.
|
if [ "$pkg_update" ]; then
|
||||||
[ "$#" -gt 1 ] && prompt "Install built packages? [$*]" && {
|
|
||||||
args i "$@"
|
|
||||||
return
|
return
|
||||||
}
|
|
||||||
|
|
||||||
|
elif [ "$#" -gt 1 ] && prompt "Install built packages? [$*]"; then
|
||||||
|
args i "$@"
|
||||||
|
|
||||||
|
else
|
||||||
log "Run 'kiss i $*' to install the package(s)"
|
log "Run 'kiss i $*' to install the package(s)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_checksums() {
|
pkg_checksums() {
|
||||||
|
Loading…
Reference in New Issue
Block a user