summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@ancheng-vm.localdomain>2007-09-20 19:29:54 -0700
committerAn-Cheng Huang <ancheng@ancheng-vm.localdomain>2007-09-20 19:29:54 -0700
commitab409c9414c6493136526c9b7ddb2bee99adc8de (patch)
tree7e4a317ebcecfb1b8f1125641c163aba384e6bcd /etc
parentf37bb5cfaf96a2a71b0825e776a50438d67cf049 (diff)
downloadvyatta-op-ab409c9414c6493136526c9b7ddb2bee99adc8de.tar.gz
vyatta-op-ab409c9414c6493136526c9b7ddb2bee99adc8de.zip
only source op-mode completion if not in config-mode.
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index f26448d..4ac0009 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -22,6 +22,11 @@
#
# **** End License ****
+# don't do this if we are going into configure mode
+if [ "$_OFR_CONFIGURE" == "ok" ]; then
+ return 0
+fi
+
# first set vars per args of the "source ...vyatta-op VAR=FOO"
_vyatta_extglob=$(shopt -p extglob)
shopt -s extglob