From c13a48dec201fe00702dabc2d2752aa6d851bbb1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 20 Apr 2020 11:07:48 +0300 Subject: [PATCH] kiss: minor fixes --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index a496989..90f5b4d 100755 --- a/kiss +++ b/kiss @@ -1350,7 +1350,7 @@ args() { set -- for path in $(KISS_PATH=$PATH pkg_find kiss-\* all); do - set -- "${path#*/kiss-}" "$@" + [ -x "$path" ] && set -- "${path#*/kiss-}" "$@" max=$((${#1} > max ? ${#1} : max)) done @@ -1386,7 +1386,7 @@ main() { # Force the C locale to speed up things like 'grep' which disable unicode # etc when this is set. We don't need unicode and a speed up is always # welcome. - export LC_ALL=C LANG=C + export LC_ALL=C # Catch errors and ensure that build files and directories are cleaned # up before we die. This occurs on 'Ctrl+C' as well as success and error.