fix "syntax error near unexpected token `>'"

"&>>" can't be recognized on some Linux OS such as SuSE because it
uses older BASH version, So use substitute mode.

Signed-off-by: Shaoyong Wang <shaoyongx.wang@intel.com>
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
diff --git a/cases/function/apei-inj/apei-inject.sh b/cases/function/apei-inj/apei-inject.sh
index 7a29391..07b6d86 100755
--- a/cases/function/apei-inj/apei-inject.sh
+++ b/cases/function/apei-inj/apei-inject.sh
@@ -38,9 +38,9 @@
 	uname -a >> $LOG
 	cat /etc/issue >> $LOG
 	echo -e "\n<<< dmesg information is as follows >>>\n" >> $LOG
-	dmesg -c &>> $LOG
+	dmesg -c >> $LOG 2>&1
 	echo -e "\n<<< mcelog information as follows >>>\n" >> $LOG
-	mcelog &>> $LOG
+	mcelog >> $LOG 2>&1
 	while [ $time -lt $timeout ]
 	do
 		grep -q "$GHES_REC" $LOG
diff --git a/cases/function/einj-ext/einj-ext.sh b/cases/function/einj-ext/einj-ext.sh
index 9eab018..c095de2 100755
--- a/cases/function/einj-ext/einj-ext.sh
+++ b/cases/function/einj-ext/einj-ext.sh
@@ -70,9 +70,9 @@
 	uname -a >> $LOG
 	cat /etc/issue >> $LOG
 	echo -e "\ndmesg information as follows:\n" >> $LOG
-	dmesg  -c &>> $LOG
+	dmesg -c >> $LOG 2>&1
 	echo -e "\nmcelog information as follows:\n" >> $LOG
-	mcelog &>> $LOG
+	mcelog >> $LOG 2>&1
 	while [ $time -lt $timeout ]
 	do
 		grep -q "$GHES_REC" $LOG