Skip to content

Commit

Permalink
*: address shellcheck SC2221 and SC2222
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 26, 2020
1 parent a167497 commit 365fa76
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion completions/arch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _arch()
COMPREPLY=( $(compgen -W 'y n' -- "$cur") )
return
;;
-d|--file)
--file)
_filedir
return
;;
Expand Down
2 changes: 1 addition & 1 deletion completions/dpkg-source
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ _dpkg_source()
# -F: force change log format
COMPREPLY=( $(command ls /usr/lib/dpkg/parsechangelog) )
;;
-V|-D)
-V)
# -V: set a substitution variable
# we don't know anything about possible variables or values
# so we don't try to suggest any completion.
Expand Down
9 changes: 4 additions & 5 deletions completions/find
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ _find()
COMPREPLY=( $(compgen -W '{0..9}' -- "$cur") )
return
;;
-newer|-anewer|-cnewer|-fls|-fprint|-fprint0|-fprintf|-name|-iname|\
-lname|-ilname|-wholename|-iwholename|-samefile)
-newer|-anewer|-cnewer|-fls|-fprint|-fprint0|-fprintf|-name|-[il]name|\
-ilname|-wholename|-[il]wholename|-samefile)
_filedir
return
;;
Expand Down Expand Up @@ -49,9 +49,8 @@ _find()
_command
return
;;
-[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\
-ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\
-used|-printf|-context)
-[acm]min|-[acm]time|-inum|-path|-ipath|-regex|-iregex|-links|-perm|\
-size|-used|-printf|-context)
# do nothing, just wait for a parameter to be given
return
;;
Expand Down
2 changes: 1 addition & 1 deletion completions/jarsigner
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _jarsigner()
-providerArg)
return
;;
-certchain|-sigfile|-tsa)
-certchain|-tsa)
_filedir
return
;;
Expand Down
4 changes: 0 additions & 4 deletions completions/java
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ _javadoc()
_java_path
return
;;
-helpfile)
_filedir
return
;;
esac

# -linkoffline takes two arguments
Expand Down
3 changes: 1 addition & 2 deletions completions/mplayer
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ _mplayer()
return
;;
-edl|-edlout|-lircconf|-menu-cfg|-playlist|-csslib|-dumpfile| \
-subfile|-vobsub|-aofile|-fbmodeconfig|-include|-o|-dvdkey| \
-passlogfile)
-subfile|-aofile|-fbmodeconfig|-include|-o|-dvdkey|-passlogfile)
_filedir
return
;;
Expand Down
2 changes: 1 addition & 1 deletion completions/pkgadd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _pkgadd ()
-k|-s|-R)
_filedir -d
;;
-P|-k|-x)
-P|-x)
;;
*)
if [[ ${cur} == -* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion completions/sync_members
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _sync_members()
COMPREPLY=( $(compgen -W 'y n' -- "$cur") )
return
;;
-d|--file)
--file)
_filedir
return
;;
Expand Down

0 comments on commit 365fa76

Please sign in to comment.