summaryrefslogtreecommitdiff
path: root/etc/completions/_cryptsetup
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-14 16:56:33 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-14 16:56:33 +0100
commit617414372ae07c45de1ea0856fa177da320df60c (patch)
tree5c6003a96ff117f5399d98e11e5183f23be158a4 /etc/completions/_cryptsetup
parentc29f75255946f5fceea57936f92b3b72c0032436 (diff)
cryptsetup completion: Fixed arguments
Diffstat (limited to 'etc/completions/_cryptsetup')
-rw-r--r--etc/completions/_cryptsetup8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/completions/_cryptsetup b/etc/completions/_cryptsetup
index 4a28068..5a327b3 100644
--- a/etc/completions/_cryptsetup
+++ b/etc/completions/_cryptsetup
@@ -19,12 +19,12 @@ function _cryptsetup_mapping {
function _cryptsetup_arguments {
if (( CURRENT == 2 )) {
- case $word[1] in
+ case $words[1] in
create|remove|status|resize) _cryptsetup_mapping ;;
luks(Format|Open|AddKey|RemoveKey|KillSlot|DelKey|UUID|Dump)|isLuks) _cryptsetup_device ;;
esac
- } elif (( CURRNT == 3 )) {
- case $word[1] in
+ } elif (( CURRENT == 3 )) {
+ case $words[1] in
create) _cryptsetup_device ;;
luksOpen) _cryptsetup_mapping ;;
esac
@@ -48,4 +48,4 @@ _arguments -n \
{-T,--tries}':passwort retries' \
'--align-payload=-:payload boundary align (512-byte sectors)' \
':action:_cryptsetup_action' \
- ':arguments::_cryptsetup_arguments'
+ '*::arguments:_cryptsetup_arguments'