Skip to content

Commit

Permalink
wget: address shellcheck SC2116
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 25, 2020
1 parent fe53ef2 commit 091a7cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .shellcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ disable=SC2015
disable=SC2016
disable=SC2035
disable=SC2086
disable=SC2116
disable=SC2155
disable=SC2162
disable=SC2231
Expand Down
2 changes: 1 addition & 1 deletion completions/wget
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _wget()
-- "$lastopt") )

# +o nospace when no more valid option is possible (= append a space)
local opt_as_arr=( $(echo ${COMPREPLY[0]//,/ }) )
local opt_as_arr=( ${COMPREPLY[0]//,/ } )
(( ${#opt_as_arr[@]} < 4 )) && compopt -o nospace
return
;;
Expand Down

0 comments on commit 091a7cd

Please sign in to comment.