aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaoyong Wang <shaoyongx.wang@intel.com>2013-04-02 09:50:29 -0400
committerChen Gong <gong.chen@linux.intel.com>2013-04-01 03:29:14 -0400
commitb8aff3581eaf198de8df7cc358bf5c3507d5fe71 (patch)
tree99d668067082f09c4ddb8247ecb60c9c473c6b1e
parent470aa9cfcee3b5efd60c054302ca57a064fc66f1 (diff)
downloadmce-test-b8aff3581eaf198de8df7cc358bf5c3507d5fe71.tar.gz
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>
-rwxr-xr-xcases/function/apei-inj/apei-inject.sh4
-rwxr-xr-xcases/function/einj-ext/einj-ext.sh4
2 files changed, 4 insertions, 4 deletions
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 @@ check_result()
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 @@ check_result()
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