aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-26 22:01:19 +0000
committermerakor <cem@ckyln.com>2020-04-26 22:01:19 +0000
commit53d992c5ceec0eca55379d584e9c2092cb9b6fc6 (patch)
tree9be23a2eae41e6a74174f236ace49ab65866521b
parent843c958059e301e77fa23d1a508e115501868d3f (diff)
downloadcpt-53d992c5ceec0eca55379d584e9c2092cb9b6fc6.tar.gz
kiss: remove -d from path query
If '-x' fails on a directory it means that we cannot see the content inside. It is pointless to check if it is a directory. FossilOrigin-Name: 0584abd45fd00cdfdfd5ad14da2a7bb9fba685ea3e74f28f772046886128a07e
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index ff60efc..5be7dc7 100755
--- a/kiss
+++ b/kiss
@@ -127,7 +127,7 @@ pkg_find() {
set +f
for path2 in "$path/"$query; do
- [ -x "$path2" ] || [ -d "$path2" ] && set -f -- "$@" "$path2"
+ [ -x "$path2" ] && set -f -- "$@" "$path2"
done
done