aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-20 16:53:58 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-20 16:53:58 +0000
commit837c942267aff4b249b306b62b81d727a2cdb1a0 (patch)
treed7cc9dc525e9100e7014d6a96e860341b4f11de5 /kiss
parent2e94bad0effca178ba62a118c1dd854f1feb804b (diff)
downloadcpt-837c942267aff4b249b306b62b81d727a2cdb1a0.tar.gz
kiss: fix install issue
FossilOrigin-Name: 765cbc56a650488270355186fd60a45a96eaf9ee16c291577f903ef55edd13bb
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss10
1 files changed, 5 insertions, 5 deletions
diff --git a/kiss b/kiss
index efc6f01..f93dc5b 100755
--- a/kiss
+++ b/kiss
@@ -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|'')