aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpt b/src/cpt
index c72d39d..ee4a328 100755
--- a/src/cpt
+++ b/src/cpt
@@ -17,7 +17,8 @@ case "$arg" in
for path; do
printf "%b->%b %-${max}s " "$colorb" "$colre" "${path#*/cpt-}"
- sed -n 's/^# *//;2p' "$(command -v "cpt-$path")"
+ awk 'NR==2{if(/^# /){sub(/^# */,"");print}else print "";exit}' \
+ "$(command -v "cpt-$path")"
done | sort -uk1 >&2
exit
;;