tutorials: Allrun: Corrected subshell handling of logging function

This commit is contained in:
Will Bainbridge
2018-04-30 17:41:58 +01:00
parent 826e009c2e
commit 35c3c814ce

View File

@ -75,7 +75,7 @@ logReport()
# logReportDir <directory> # logReportDir <directory>
# Extracts useful info from all log files in a directory # Extracts useful info from all log files in a directory
logReportDir() logReportDir()
{ (
[ -d $1 ] || return 0 [ -d $1 ] || return 0
cd $1 || return 1 cd $1 || return 1
@ -92,7 +92,7 @@ logReportDir()
echo "" >> ../testLoopReport echo "" >> ../testLoopReport
return $retVal return $retVal
} )
# Recursively run all cases # Recursively run all cases