aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2012-11-06 02:11:21 -0500
committerChen, Gong <gong.chen@linux.intel.com>2015-01-21 21:24:00 -0500
commit7d67790b8292e320fb8a6e11144a0cce11a615dc (patch)
tree5f247faf9e843cb2f3e86d5f69da6edfc5f2d5e2
parent595ef75e0d81394e524c99d1f1318443b08b1b20 (diff)
downloadmce-test-7d67790b8292e320fb8a6e11144a0cce11a615dc.tar.gz
Add workaround for dialog output because of its version
The output from special dialog version has double quote even if --separate-output is used. If so, rip them to ensure the output is like regular dialog output. Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-xmcemenu5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcemenu b/mcemenu
index 6836c24..8fb844b 100755
--- a/mcemenu
+++ b/mcemenu
@@ -342,6 +342,11 @@ ras_scenarios()
# item1\|item2\|item3
TMPMODE=$(cat $TMPSEL | while read line
do
+ # Some dialog output has double quote even if
+ # --separate-output is used. If so, rip them
+ if [ ${line:0:1} = \" -a ${line: -1} = \" ]; then
+ line=${line:1:${#line}-2}
+ fi
echo -n \\\|$line
done)
#remove the first prefix "\|"