forked from kiss-community/kiss
kiss: nit
This commit is contained in:
parent
70bd51f46b
commit
d21b33742d
17
kiss
17
kiss
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user