1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-07-02 14:02:26 +00:00

kiss: simplify prompt

This commit is contained in:
Dylan Araps 2021-06-28 12:44:18 +00:00
parent 58d1c669e5
commit ea18c88f74

10
kiss
View File

@ -753,15 +753,7 @@ pkg_build() {
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
set -- $explicit set -- $explicit
if [ "$pkg_update" ]; then [ "$pkg_update" ] || prompt "Install built packages? [$*]" && args i "$@"
return
elif [ "$#" -gt 1 ] && prompt "Install built packages? [$*]"; then
args i "$@"
else
log "Run 'kiss i $*' to install the package(s)"
fi
} }
pkg_checksums() { pkg_checksums() {