Skip to content

Commit

Permalink
fix(brctl): fix quoting of the command name
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 30, 2024
1 parent 3c2cac0 commit 8d270ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions completions/brctl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

_comp_cmd_brctl__interfaces()
{
_comp_compgen_split -- "$(${1:-brctl} show ${2:+"$2"} 2>/dev/null | _comp_awk \
'(NR == 1) { next }; (/^\t/) { print $1; next }; { print $4 }')"
_comp_compgen_split -- "$(
"${1:-brctl}" show ${2:+"$2"} 2>/dev/null | _comp_awk \
'(NR == 1) { next }; (/^\t/) { print $1; next }; { print $4 }'
)"
}

_comp_cmd_brctl()
Expand Down

0 comments on commit 8d270ea

Please sign in to comment.