diff options
author | Chen Gong <gong.chen@linux.intel.com> | 2012-11-06 02:11:21 -0500 |
---|---|---|
committer | Chen, Gong <gong.chen@linux.intel.com> | 2015-01-21 21:24:00 -0500 |
commit | 7d67790b8292e320fb8a6e11144a0cce11a615dc (patch) | |
tree | 5f247faf9e843cb2f3e86d5f69da6edfc5f2d5e2 | |
parent | 595ef75e0d81394e524c99d1f1318443b08b1b20 (diff) | |
download | mce-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-x | mcemenu | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 "\|" |