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>2015-01-21 21:24:00 -0500
commit79e0e1a878fdb328a788338cf061174dac3f88a3 (patch)
tree99d668067082f09c4ddb8247ecb60c9c473c6b1e
parenta8f7bb5d5fa40632d6c8b9884b11087d7c765257 (diff)
downloadmce-test-79e0e1a878fdb328a788338cf061174dac3f88a3.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