aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-11 18:04:06 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-11 18:04:06 +0000
commit8326a8b148156875d08402f6edf56caad9aedf15 (patch)
tree0678ed8fd4527f50c3d29a37252b6bfa405b35e2 /contrib
parent22b58003321ac36f73dc38bc7d382f07e0ab9b58 (diff)
downloadcpt-8326a8b148156875d08402f6edf56caad9aedf15.tar.gz
contrib: Remove unneeded checks
FossilOrigin-Name: 30a1895f85e2d36436163f232c803b3570336f53f43b130a0bd8db04f2829632
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/kiss-depends-finder2
-rwxr-xr-xcontrib/kiss-export2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/kiss-depends-finder b/contrib/kiss-depends-finder
index 32b2b17..432a105 100755
--- a/contrib/kiss-depends-finder
+++ b/contrib/kiss-depends-finder
@@ -9,7 +9,7 @@ grep=$(command -v ggrep) || grep='grep'
printf '=> Detected dependencies:\n'
-while read -r file || [ "$file" ]; do
+while read -r file; do
[ -d "$KISS_ROOT/$file" ] && continue
ldd "$KISS_ROOT/$file" 2>/dev/null | while read -r dep; do
diff --git a/contrib/kiss-export b/contrib/kiss-export
index dd5dedd..f8add7c 100755
--- a/contrib/kiss-export
+++ b/contrib/kiss-export
@@ -13,7 +13,7 @@ pkg=$1
set --
# Construct the argument list using each file.
-while read -r file || [ "$file" ]; do
+while read -r file; do
[ -d "$KISS_ROOT/$file" ] || set -- "$@" ".$file"
done < "$KISS_ROOT/var/db/kiss/installed/$pkg/manifest"