aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-28 00:11:36 +0000
committermerakor <cem@ckyln.com>2020-05-28 00:11:36 +0000
commit16f53ebb021c39056857efcf9cd326562ae12dde (patch)
tree7ed8dbc0222e5b0ea292dcc88e44d55fed6b7e8c
parentc3c4956f0183cfc4d44d918ab4ece815899aa1b9 (diff)
downloadcpt-16f53ebb021c39056857efcf9cd326562ae12dde.tar.gz
kiss: check actual value instead of non-zero
FossilOrigin-Name: 172f636d6b0d67389534a8b8c02cb312558a79123a38177a083e92f4985e4b52
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index c4d6d34..d152cf4 100755
--- a/kiss
+++ b/kiss
@@ -1097,7 +1097,7 @@ pkg_install() {
# Ensure that the tarball's manifest is correct by checking that
# each file and directory inside of it actually exists.
- [ -z "$KISS_FORCE" ] && log "$pkg_name" "Checking package manifest" &&
+ [ "$KISS_FORCE" != 1 ] && log "$pkg_name" "Checking package manifest" &&
while read -r line; do
# Skip symbolic links
[ -h "$tar_dir/$pkg_name/$line" ] ||
@@ -1116,7 +1116,7 @@ pkg_install() {
# Make sure that all run-time dependencies are installed prior to
# installing the package.
[ -f "$tar_dir/$pkg_name/$pkg_db/$pkg_name/depends" ] &&
- [ -z "$KISS_FORCE" ] &&
+ [ "$KISS_FORCE" != 1 ] &&
while read -r dep dep_type || [ "$dep" ]; do
[ "${dep##\#*}" ] || continue
[ "$dep_type" ] || pkg_list "$dep" >/dev/null ||