summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/10vyatta-op10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index 3052fa9..cf40e59 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -28,11 +28,6 @@ test -f /etc/default/vyatta && \
test ! -d "$vyatta_op_templates" && \
return 0
-# don't do this if we are going into configure mode
-if [ "$_OFR_CONFIGURE" == "ok" ]; then
- return 0
-fi
-
declare _vyatta_op_last_comp
# $1: label
@@ -219,6 +214,11 @@ _vyatta_op_run ()
eval $restore_shopts
}
+# don't initialize if we are in configure mode
+if [ "$_OFR_CONFIGURE" == "ok" ]; then
+ return 0
+fi
+
_vyatta_op_init $@
### Local Variables: