Skip to content

Commit 6dab756

Browse files
akinomyogascop
authored andcommitted
refactor(reportbug): use awk to extract sources
1 parent 8f2af29 commit 6dab756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/reportbug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _comp_cmd_reportbug()
4242
;;
4343
--from-buildd)
4444
_comp_compgen_split -S "_" -- "$(apt-cache dumpavail |
45-
command grep "^Source: $cur" | sort -u | cut -f2 -d' ')"
45+
_comp_awk -F ' ' '$1 == "Source:" && !uniq[$2]++ { print $2 }')"
4646
return
4747
;;
4848
--smtphost)

0 commit comments

Comments
 (0)