Skip to content

Commit

Permalink
_known_hosts_real, op: address shellcheck SC2184
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 1, 2020
1 parent 3f0d77f commit 7fdd0a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ _known_hosts_real()
fi
if [[ $ipv4 || $ipv6 ]]; then
for i in "${!COMPREPLY[@]}"; do
[[ ${COMPREPLY[i]} ]] || unset -v COMPREPLY[i]
[[ ${COMPREPLY[i]} ]] || unset -v "COMPREPLY[i]"
done
fi

Expand Down
2 changes: 1 addition & 1 deletion completions/op
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _op_command_options()
case $cur in
-*)
for i in "${!words[@]}"; do
[[ ${words[i]} == -* || $i -eq 0 ]] && unset words[i]
[[ ${words[i]} == -* || $i -eq 0 ]] && unset "words[i]"
done
COMPREPLY=( $(compgen -W \
'$(_parse_usage "$1" "${words[*]} --help") --help' -- "$cur") )
Expand Down

0 comments on commit 7fdd0a5

Please sign in to comment.