Allow a space before time tag

This matches the fortran format for creams
This commit is contained in:
Rodrigo Arias 2020-12-17 15:24:23 +01:00
parent 203dc9f295
commit b5cadefca9

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation {
cd ${inputResult}/$exp/$unit
conf=garlic_config.json
for run in $(ls -d [0-9]* | sort -n); do
time=$(awk '/^time /{print $2}' $run/stdout.log)
time=$(awk '/^ ?time /{print $2}' $run/stdout.log)
jq -cn "{ exp:\"$exp\", unit:\"$unit\", config:inputs, time:$time, run:$run }" $conf >> $out
done
done