Skip to content

Commit

Permalink
crontab, wodim: silence shellcheck SC2191 and SC2192
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 26, 2020
1 parent 826b333 commit e81f690
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion completions/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _crontab()
;;
esac

local -A opts=( [-u]= [-l]= [-r]= [-e]= )
local -A opts=( [-u]="" [-l]="" [-r]="" [-e]="" )
[[ $OSTYPE == *linux* ]] && opts[-i]=
[[ -d /sys/fs/selinux || -d /selinux ]] && opts[-s]=

Expand Down
9 changes: 5 additions & 4 deletions completions/wodim
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ _cdrecord()
-dao -sao -tao -raw -raw96r -raw96p -raw16 -multi -msinfo -toc -atip \
-fix -nofix -waiti -load -lock -eject -format -setdropts -checkdrive \
-prcap -inq -scanbus --devices -reset -abort -overburn -ignsize \
-useinfo -packet -noclose -text debug= kdebug= minbuf= msifile= \
speed= blank= fs= ts= dev= gracetime= timeout= driver= driveropts= \
defpregap= pktsize= mcn= textfile= cuefile= )
-useinfo -packet -noclose -text "debug=" "kdebug=" "minbuf=" \
"msifile=" "speed=" "blank=" "fs=" "ts=" "dev=" "gracetime=" \
"timeout=" "driver=" "driveropts=" "defpregap=" "pktsize=" "mcn=" \
"textfile=" "cuefile=" )
track_options=( -audio -swab -data -mode2 -xa -xa1 -xa2 -xamix -cdi \
-isosize -pad -nopad -shorttrack -noshorttrack -preemp -nopreemp \
-copy -nocopy -scms isrc= index= padsize= pregap= tsize= )
-copy -nocopy -scms "isrc=" "index=" "padsize=" "pregap=" "tsize=" )
# look if previous was either a file or a track option
track_mode=0
if [[ $cword -gt 1 ]]; then
Expand Down

0 comments on commit e81f690

Please sign in to comment.