From 601cc5d54fa869dd4a9bbe45e9396ba6fc1f5811 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 21 Oct 2011 12:40:59 -0500 Subject: Don't show an error message when we can't turn echo on (this is the case with the webgui) --- functions/interpreter/vyatta-op-run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions/interpreter') diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run index a064b61..9ea4368 100644 --- a/functions/interpreter/vyatta-op-run +++ b/functions/interpreter/vyatta-op-run @@ -120,9 +120,9 @@ _vyatta_op_run () _vyatta_op_last_comp=${_vyatta_op_last_comp_init} false; estat=$? - stty echo # turn echo on, this is a workaround for bug 7570 - # not a fix we need to look at why the readline library - # is getting confused on paged help text. + stty echo 2> /dev/null # turn echo on, this is a workaround for bug 7570 + # not a fix we need to look at why the readline library + # is getting confused on paged help text. i=1 declare -a args # array of expanded arguments -- cgit v1.2.3