forked from kiss-community/kiss
kiss: remove second last sed call
This commit is contained in:
parent
935196adaa
commit
6cbf35151b
12
kiss
12
kiss
@ -1804,11 +1804,19 @@ args() {
|
||||
esac
|
||||
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
|
||||
printf "%b->%b %-${max}s " "$c1" "$c3" "${path#*/kiss-}"
|
||||
sed -n 's/^# *//;2p' "$path"
|
||||
# Open the extension as a file descriptor.
|
||||
exec 3< "$path"
|
||||
|
||||
# Grab the second line in the extension.
|
||||
{ read -r _ && read -r _ cmt; } <&3
|
||||
|
||||
printf "%b->%b %-${max}s %s\\n" \
|
||||
"$c1" "$c3" "${path#*/kiss-}" "$cmt"
|
||||
done >&2
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user