Skip to content

Commit

Permalink
completion: remove unnecessary echo and unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oersen committed Mar 26, 2022
1 parent 7c46c92 commit a80d778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/bash_completion.d/dnf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ _dnf_commands_helper()
{
local helper_cmd="import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])"
local helper_opts="-d 0 -q -C --assumeno --nogpgcheck"
echo "$( ${__dnf_python_exec} -c "$helper_cmd" "$@" $helper_opts 2>/dev/null </dev/null )"
"${__dnf_python_exec}" -c "$helper_cmd" "$@" $helper_opts 2>/dev/null </dev/null
}

# decide "path-like?" per initial: dot (./f.rpm, ../b.rpm), / (full path) or ~
Expand Down Expand Up @@ -175,7 +175,7 @@ _dnf()
_dnf_set_python_exec

local complete_commands complete_options extra_options command cmd_list
local cur prev words cword split
local cur prev cword split
_init_completion -s || return

cmd_list="$( _dnf_commands_helper "_cmds" "" )"
Expand Down

0 comments on commit a80d778

Please sign in to comment.