From d0f68abbba5e2cf7f16c6b63c54d0eea3f695357 Mon Sep 17 00:00:00 2001 From: Johannes Keller Date: Fri, 22 Nov 2024 14:18:36 +0100 Subject: [PATCH] build_tsmp2: correct check for alternative `parflow` `sub_srcname` contains the string `parflow`, while `comp_name` takes the variable `parflow` that contains `y` or `n`. --- build_tsmp2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tsmp2.sh b/build_tsmp2.sh index eba25ab..2ea274e 100755 --- a/build_tsmp2.sh +++ b/build_tsmp2.sh @@ -66,7 +66,7 @@ local -n comp_namey=$1 local -n comp_srcname=$2 sub_srcname=$3 if [ -n "${comp_namey}" ] && [ -z "${comp_srcname}" ];then - if [ "${comp_name}" = "parflow" ] && [ -n "${pdaf}" ];then + if [ "${sub_srcname}" = "parflow" ] && [ -n "${pdaf}" ];then submodule_name=$(echo "models/${sub_srcname}_pdaf") else submodule_name=$(echo "models/"${sub_srcname})