From ab409c9414c6493136526c9b7ddb2bee99adc8de Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 20 Sep 2007 19:29:54 -0700 Subject: only source op-mode completion if not in config-mode. --- etc/bash_completion.d/vyatta-op | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc') 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 -- cgit v1.2.3