summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-17 09:47:41 +0100
committerDaniil Baturin <daniil@baturin.org>2015-02-17 09:47:41 +0100
commitc29e9e4375a0c8bd45ade0c0374ed8477327e5cc (patch)
treea23647ee2d16a3b4edbd381853ee11f443493881
parent38eb805acd427a7ddd9d60b6b3f319abd4a1caa3 (diff)
downloadvyatta-op-c29e9e4375a0c8bd45ade0c0374ed8477327e5cc.tar.gz
vyatta-op-c29e9e4375a0c8bd45ade0c0374ed8477327e5cc.zip
Bug #377: make commands pipe throw an error in op mode.
-rw-r--r--etc/bash_completion.d/vyatta-op6
1 files changed, 5 insertions, 1 deletions
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