kiss: fix install issue

This commit is contained in:
Dylan Araps 2019-09-20 19:53:58 +03:00
parent 020a2002f5
commit 63818fb4ad
1 changed files with 5 additions and 5 deletions

10
kiss
View File

@ -713,10 +713,10 @@ pkg_install() {
# we no longer need to block 'Ctrl+C'. # we no longer need to block 'Ctrl+C'.
trap pkg_clean EXIT INT trap pkg_clean EXIT INT
[ -x "$sys_db/$pkg_name/post-install" ] && { if [ -x "$sys_db/$pkg_name/post-install" ]; then
log "[$pkg_name] Running post-install script" log "[$pkg_name] Running post-install script"
"$sys_db/$pkg_name/post-install" ||: "$sys_db/$pkg_name/post-install" ||:
} fi
log "[$pkg_name] Installed successfully" log "[$pkg_name] Installed successfully"
} }
@ -830,7 +830,7 @@ pkg_updates() {
pkg_clean() { pkg_clean() {
# Clean up on exit or error. This removes everything related # Clean up on exit or error. This removes everything related
# to the build. # to the build.
[ "$KISS_DEBUG" = 1 ] && return [ "$KISS_DEBUG" != 1 ] || return
# Block 'Ctrl+C' while cache is being cleaned. # Block 'Ctrl+C' while cache is being cleaned.
trap '' INT trap '' INT
@ -910,7 +910,7 @@ args() {
# The purpose of these two loops is to order the # The purpose of these two loops is to order the
# argument list based on dependence. # argument list based on dependence.
for pkg in $deps; do for pkg in $deps; do
contains "$*" "$pkg" && pkg_install "$pkg" ! contains "$*" "$pkg" || pkg_install "$pkg"
done done
;; ;;
@ -947,7 +947,7 @@ args() {
;; ;;
v|version|-v|--version) v|version|-v|--version)
printf 'kiss 0.30.1\n' printf 'kiss 0.30.2\n'
;; ;;
h|help|-h|--help|'') h|help|-h|--help|'')