From 8326a8b148156875d08402f6edf56caad9aedf15 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Wed, 11 Mar 2020 18:04:06 +0000 Subject: contrib: Remove unneeded checks FossilOrigin-Name: 30a1895f85e2d36436163f232c803b3570336f53f43b130a0bd8db04f2829632 --- contrib/kiss-depends-finder | 2 +- contrib/kiss-export | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') 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" -- cgit v1.2.3