kiss: nit

This commit is contained in:
Dylan Araps 2021-11-05 07:48:18 +02:00
parent 70bd51f46b
commit d21b33742d
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

17
kiss
View File

@ -1717,17 +1717,16 @@ pkg_help_ext() {
#
# This also removes any duplicates found in '$PATH', picking the
# first match.
for path do p=${path#*/kiss-}
case " $seen " in
*" $p "*)
shift
;;
for path do
p=${path#*/kiss-}
*)
seen=" $seen $p "
max=$((${#p} > max ? ${#p}+1 : max))
;;
case " $seen " in *" $p "*)
shift
continue
esac
seen=" $seen $p "
max=$((${#p} > max ? ${#p}+1 : max))
done
IFS=\#$IFS