From c29e9e4375a0c8bd45ade0c0374ed8477327e5cc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 17 Feb 2015 09:47:41 +0100 Subject: Bug #377: make commands pipe throw an error in op mode. --- etc/bash_completion.d/vyatta-op | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 2845377..c820305 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -499,7 +499,11 @@ strip-private () commands () { - ${vyatta_sbindir}/vyatta-config-gen-sets.pl - + if [ "$_OFR_CONFIGURE" != "" ]; then + ${vyatta_sbindir}/vyatta-config-gen-sets.pl - + else + echo "commands pipe is not supported in operational mode" + fi } # pipe command help -- cgit v1.2.3