Skip to content

Commit

Permalink
kiss: remove -d from path query
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cemkeylan committed Apr 26, 2020
1 parent 843c958 commit 53d992c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiss
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 53d992c

Please sign in to comment.