From 79e0e1a878fdb328a788338cf061174dac3f88a3 Mon Sep 17 00:00:00 2001 From: Shaoyong Wang Date: Tue, 2 Apr 2013 09:50:29 -0400 Subject: 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 Signed-off-by: Chen Gong --- cases/function/apei-inj/apei-inject.sh | 4 ++-- 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 -- cgit 1.2.3-korg