Skip to content

Commit

Permalink
refactor(reportbug): use awk to extract sources
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga authored and scop committed Jan 3, 2024
1 parent 8f2af29 commit 6dab756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/reportbug
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ _comp_cmd_reportbug()
;;
--from-buildd)
_comp_compgen_split -S "_" -- "$(apt-cache dumpavail |
command grep "^Source: $cur" | sort -u | cut -f2 -d' ')"
_comp_awk -F ' ' '$1 == "Source:" && !uniq[$2]++ { print $2 }')"
return
;;
--smtphost)
Expand Down

0 comments on commit 6dab756

Please sign in to comment.