summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-03-13 21:30:29 +0000
committerJohn Southworth <john.southworth@vyatta.com>2012-03-13 22:56:43 +0000
commita787b88d55b2acbf4031486cf5d99e86cd2915c2 (patch)
treec5b2140de27679579b84718a9a9d2790cf340d72
parent5c87a29d59330dce77628a36a23b37b078b6810b (diff)
downloadvyatta-op-a787b88d55b2acbf4031486cf5d99e86cd2915c2.tar.gz
vyatta-op-a787b88d55b2acbf4031486cf5d99e86cd2915c2.zip
Bugfix 7527: Don't override VYATTA_PAGER value if it was previously set
-rw-r--r--etc/bash_completion.d/vyatta-op3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index f638488..65dd701 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -32,7 +32,8 @@ test -z "$_vyatta_default_pager" && \
--auto-buffers\
--no-lessopen\
$_vyatta_less_options"
-declare -x VYATTA_PAGER=$_vyatta_default_pager
+test -z "$VYATTA_PAGER" && \
+ declare -x VYATTA_PAGER=$_vyatta_default_pager
_vyatta_op_do_key_bindings ()
{