diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-02-17 09:47:41 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-02-27 20:11:19 +0100 |
commit | 1526b441a14530cbda2f461747d7e059ba73958a (patch) | |
tree | 660d415cfa6b49ae14551ac53caa773c51f008fa /etc/bash_completion.d/vyatta-op | |
parent | 890beb761dcec98ff16903f465253aaa6a8274a4 (diff) | |
download | vyatta-op-1526b441a14530cbda2f461747d7e059ba73958a.tar.gz vyatta-op-1526b441a14530cbda2f461747d7e059ba73958a.zip |
Bug #377: make commands pipe throw an error in op mode.
Diffstat (limited to 'etc/bash_completion.d/vyatta-op')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 6 |
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 |