cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit e820cf6c8ce2cd825af37f422d6394e029b2187c
parent b905b07c470dc0ed650d6ff8c85ab43edfbd9220
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 27 Apr 2020 01:01:19 +0300

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.

Diffstat:
Mkiss | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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