diff options
author | Shaoyong Wang <shaoyongx.wang@intel.com> | 2013-04-02 09:50:29 -0400 |
---|---|---|
committer | Chen, Gong <gong.chen@linux.intel.com> | 2015-01-21 21:24:00 -0500 |
commit | 79e0e1a878fdb328a788338cf061174dac3f88a3 (patch) | |
tree | 99d668067082f09c4ddb8247ecb60c9c473c6b1e | |
parent | a8f7bb5d5fa40632d6c8b9884b11087d7c765257 (diff) | |
download | mce-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-x | cases/function/apei-inj/apei-inject.sh | 4 | ||||
-rwxr-xr-x | cases/function/einj-ext/einj-ext.sh | 4 |
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 |