summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2017-01-07 16:07:03 +0100
committerMartin Väth <martin@mvath.de>2017-01-07 16:10:17 +0100
commit62181a206b29807c4fc4c446bc911de7d35e6ab9 (patch)
tree23f0cc4d825ef728fa9bb3dd080471ed8b69f3be /media-tv/sundtek-tv/files/_mediaclient
parentgames-rpg/m5figur-mv: Version bump (diff)
downloadmv-62181a206b29807c4fc4c446bc911de7d35e6ab9.tar.gz
mv-62181a206b29807c4fc4c446bc911de7d35e6ab9.tar.bz2
mv-62181a206b29807c4fc4c446bc911de7d35e6ab9.zip
media-tv/sundtek-tv: Fix completion for >=zsh-5.3
Diffstat (limited to 'media-tv/sundtek-tv/files/_mediaclient')
-rw-r--r--media-tv/sundtek-tv/files/_mediaclient27
1 files changed, 9 insertions, 18 deletions
diff --git a/media-tv/sundtek-tv/files/_mediaclient b/media-tv/sundtek-tv/files/_mediaclient
index 278b527f..dc0952d8 100644
--- a/media-tv/sundtek-tv/files/_mediaclient
+++ b/media-tv/sundtek-tv/files/_mediaclient
@@ -132,8 +132,7 @@ case $state in
'0:FM receiver'
'1:FM transmitter'
)
- _describe -t tunerid 'tuner id' tunerids
- ret=$?;;
+ _describe -t tunerid 'tuner id' tunerids && ret=0;;
(voltage)
local voltages
voltages=(
@@ -141,24 +140,21 @@ case $state in
'V:13V'
'OFF:0V'
)
- _describe -t voltage 'voltage' voltages
- ret=$?;;
+ _describe -t voltage 'voltage' voltages && ret=0;;
(polarisation)
local polarisations
polarisations=(
'H:horizontal'
'V:vertical'
)
- _describe -t polarisation 'polarisation' polarisations
- ret=$?;;
+ _describe -t polarisation 'polarisation' polarisations && ret=0;;
(signalreporting)
local signalreport
signalreport=(
'0:videodecoder (fast, default)'
'1:demodulator (slow, detailed)'
)
- _describe -t signalreporting 'signal reporting' signalreport
- ret=$?;;
+ _describe -t signalreporting 'signal reporting' signalreport && ret=0;;
(internalaudio)
local internalaudios
internalaudios=(
@@ -167,38 +163,33 @@ case $state in
'external:require external application'
'audioonly:only initialize audio transfer'
)
- _describe -t internalaudio 'internal audio' internalaudios
- ret=$?;;
+ _describe -t internalaudio 'internal audio' internalaudios && ret=0;;
(rclayout)
local rclayouts
rclayouts=(
'0:internal keymap for flat remote control'
'1:internal keymap for black VCR remote control'
)
- _describe -t rclayout 'rc layout' rclayouts
- ret=$?;;
+ _describe -t rclayout 'rc layout' rclayouts && ret=0;;
(nullpackets)
local nullpackets
nullpackets=(
'on'
'off:default'
)
- _describe -t nullpackets 'pass null packets' nullpackets
- ret=$?;;
+ _describe -t nullpackets 'pass null packets' nullpackets && ret=0;;
(deinterlacerid)
local deinterlacerids
deinterlacerids=(
'0:default'
)
- _describe -t deinterlacerid 'deinterlacer id' deinterlacerids
- ret=$?;;
+ _describe -t deinterlacerid 'deinterlacer id' deinterlacerids && ret=0;;
(createmount)
local virtualadapters
virtualadapters=(
'0:local device'
'192.168.1.2:0:remote device'
)
- _describe -t virtualadapter 'virtual adapter' virtualadapters
- ret=$?;;
+ _describe -t virtualadapter 'virtual adapter' virtualadapters && ret=0;;
esac
return ret