Commit 18a20a7 1 parent 20e8f6e commit 18a20a7 Copy full SHA for 18a20a7
File tree 2 files changed +7
-12
lines changed
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# set the binpath variable
3
- if [ -z " $FASTSURFER_HOME " ]
4
- then
5
- binpath=" $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) /"
6
- else
7
- binpath=" $FASTSURFER_HOME /recon_surf/"
3
+ if [[ -z " $FASTSURFER_HOME " ]] ; then binpath=" $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) /"
4
+ else binpath=" $FASTSURFER_HOME /recon_surf/"
8
5
fi
9
6
export binpath
10
7
11
8
# fs_time command from fs60, fs72 fails in parallel mode, use local one
12
- # also check for failure (e.g. on mac it fails)
13
- timecmd=" ${binpath} fs_time"
14
- $timecmd echo testing & > /dev/null
15
- if [ " ${PIPESTATUS[0]} " -ne 0 ] ; then
16
- echo " time command failing, not using time..."
17
- timecmd=" "
9
+ # also check for failure (e.g. on mac it fails, so we cannot use it there)
10
+ if FSTIME_LOAD=0 " ${binpath} fs_time" echo testing & > /dev/null ; then timecmd=" ${binpath} fs_time"
11
+ else timecmd=" " ; echo " INFO: Testing fs_time was not successful, not reporting per-command runtimes."
18
12
fi
19
13
export timecmd
14
+ export LC_NUMERIC=" en_US.UTF-8"
20
15
21
16
function check_create_subjects_dir_properties()
22
17
{
Original file line number Diff line number Diff line change @@ -1402,7 +1402,7 @@ fi # not base run
1402
1402
# Collect info
1403
1403
EndTime=$( date)
1404
1404
tSecEnd=$( date ' +%s' )
1405
- tRunHours=$( printf %6.3f " $( bc <<< " ($tSecEnd - $tSecStart) / 3600" ) " )
1405
+ tRunHours=$( LC_NUMERIC= " en_US.UTF-8 " printf %6.3f " $( bc -l <<< " ($tSecEnd - $tSecStart) / 3600" ) " )
1406
1406
1407
1407
{
1408
1408
echo " "
You can’t perform that action at this time.
0 commit comments