1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 22:15:36 -07:00

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))
done
IFS=\#$IFS
# Print each extension, grab its description from the second line
# in the file and align the output based on the above max.
for path do
@ -1738,7 +1736,7 @@ pkg_help_ext() {
exec 3< "$path"
# 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" \
"$c1" "$c3" "${path#*/kiss-}" "$cmt"