From 53d992c5ceec0eca55379d584e9c2092cb9b6fc6 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 26 Apr 2020 22:01:19 +0000 Subject: 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 --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3