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>
diff --git a/mcemenu b/mcemenu
index 6836c24..8fb844b 100755
--- a/mcemenu
+++ b/mcemenu
@@ -342,6 +342,11 @@
# 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 "\|"