From a0373b8b9e9d6eff67db6c920a48639596052e86 Mon Sep 17 00:00:00 2001 From: Modellers Operational Date: Mon, 4 Feb 2019 14:48:52 +0000 Subject: [PATCH] Bug fix in nan check script --- app/nan_check/rose-app.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/nan_check/rose-app.conf b/app/nan_check/rose-app.conf index eb4de51..6c52086 100644 --- a/app/nan_check/rose-app.conf +++ b/app/nan_check/rose-app.conf @@ -1,5 +1,5 @@ [command] -default = log_file=${ROSE_TASK_LOG_ROOT}; log_dir=${log_file::${#log_dir}-4} +default = log_file=${ROSE_TASK_LOG_ROOT}; log_dir=${log_file::${#log_file}-4}; cd ${log_dir}; cd ../../run_fvcom/01/; - nanlines=$(grep -w "NaN" job.out| wc -l"); - if [ ${nanlines} -gt 0 ]; then exit 1 fi + nanlines=$(grep -w "NaN" job.out| wc -l); + if [ ${nanlines} -gt 0 ]; then exit 1; fi; -- GitLab