diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-20 16:53:58 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-20 16:53:58 +0000 |
commit | 837c942267aff4b249b306b62b81d727a2cdb1a0 (patch) | |
tree | d7cc9dc525e9100e7014d6a96e860341b4f11de5 /kiss | |
parent | 2e94bad0effca178ba62a118c1dd854f1feb804b (diff) | |
download | cpt-837c942267aff4b249b306b62b81d727a2cdb1a0.tar.gz |
kiss: fix install issue
FossilOrigin-Name: 765cbc56a650488270355186fd60a45a96eaf9ee16c291577f903ef55edd13bb
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -713,10 +713,10 @@ pkg_install() { # we no longer need to block 'Ctrl+C'. 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" "$sys_db/$pkg_name/post-install" ||: - } + fi log "[$pkg_name] Installed successfully" } @@ -830,7 +830,7 @@ pkg_updates() { pkg_clean() { # Clean up on exit or error. This removes everything related # to the build. - [ "$KISS_DEBUG" = 1 ] && return + [ "$KISS_DEBUG" != 1 ] || return # Block 'Ctrl+C' while cache is being cleaned. trap '' INT @@ -910,7 +910,7 @@ args() { # The purpose of these two loops is to order the # argument list based on dependence. for pkg in $deps; do - contains "$*" "$pkg" && pkg_install "$pkg" + ! contains "$*" "$pkg" || pkg_install "$pkg" done ;; @@ -947,7 +947,7 @@ args() { ;; v|version|-v|--version) - printf 'kiss 0.30.1\n' + printf 'kiss 0.30.2\n' ;; h|help|-h|--help|'') |