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