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
|
esac
|
||||||
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
|
||||||
printf "%b->%b %-${max}s " "$c1" "$c3" "${path#*/kiss-}"
|
# Open the extension as a file descriptor.
|
||||||
sed -n 's/^# *//;2p' "$path"
|
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
|
done >&2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue