Skip to content

Commit

Permalink
cfrun: fix $hostfile leak
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed May 27, 2020
1 parent 9994be6 commit 68b5719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/cfrun
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _cfrun()
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '-f -h -d -S -T -v' -- "$cur"))
else
hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts
local hostfile=${CFINPUTS:-/var/lib/cfengine/inputs}/cfrun.hosts
for ((i = 1; i < cword; i++)); do
if [[ ${words[i]} == -f ]]; then
hostfile=${words[i + 1]}
Expand Down

0 comments on commit 68b5719

Please sign in to comment.