Skip to content

Commit

Permalink
cvs, modprobe, sh: address shellcheck SC2209
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 11, 2020
1 parent a5890aa commit f894bc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions completions/cvs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ _cvs()
mode=add
;;
admin|adm|rcs)
mode=admin
mode="admin"
;;
annotate|ann|blame|rannotate|rann|ra)
mode=annotate
Expand All @@ -86,10 +86,10 @@ _cvs()
mode=commit
;;
diff|di|dif)
mode=diff
mode="diff"
;;
export|ex|exp)
mode=export
mode="export"
;;
edit|unedit|editors|logout|pserver|server|watch|watchers)
mode=$i
Expand Down
2 changes: 1 addition & 1 deletion completions/modprobe
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _modprobe()
mode=list
;;
--dump-modversions)
mode=file
mode="file"
;;
--set-version|-!(-*)S)
version=${words[i+1]} # -S is not $prev and not $cur
Expand Down
2 changes: 1 addition & 1 deletion completions/sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _sh()

local args ext=
_count_args "" "@(-c|[-+]o)"
[[ $args -eq 1 ]] && ext=sh
[[ $args -eq 1 ]] && ext="sh"
_filedir $ext
} &&
complete -F _sh sh
Expand Down

0 comments on commit f894bc1

Please sign in to comment.