kiss: nit

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

4
kiss
View File

@ -1729,8 +1729,6 @@ pkg_help_ext() {
max=$((${#p} > max ? ${#p}+1 : max)) max=$((${#p} > max ? ${#p}+1 : max))
done done
IFS=\#$IFS
# Print each extension, grab its description from the second line # Print each extension, grab its description from the second line
# in the file and align the output based on the above max. # in the file and align the output based on the above max.
for path do for path do
@ -1738,7 +1736,7 @@ pkg_help_ext() {
exec 3< "$path" exec 3< "$path"
# Grab the second line in the extension. # Grab the second line in the extension.
{ read -r _ && read -r _ cmt; } <&3 { read -r _ && IFS=\#$IFS read -r _ cmt; } <&3
printf "%b->%b %-${max}s %s\\n" \ printf "%b->%b %-${max}s %s\\n" \
"$c1" "$c3" "${path#*/kiss-}" "$cmt" "$c1" "$c3" "${path#*/kiss-}" "$cmt"