summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 3244394..61d8cf5 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -103,9 +103,9 @@ _vyatta_op_is_allowed ()
# return immediately if nothing allowed
[ ${#_vyatta_op_allowed[@]} -ne 0 ] || return
- # -- is wildcard that allows anything
- [ ${_vyatta_op_allowed[0]} == -- ] && return
for allowed in ${_vyatta_op_allowed[@]} ; do
+ # -- is wildcard that allows anything
+ [ $allowed == -- ] && return
[ "$arg" == $allowed ] && return
done
false