From 6a07dcd22b2e84c3cb61c9761cab33d23dcc0b4e Mon Sep 17 00:00:00 2001 From: Karl-Hermann Wieners <karl-hermann.wieners@mpimet.mpg.de> Date: Tue, 19 Nov 2024 07:46:56 +0100 Subject: [PATCH] import: fix substitution errors by trailing slash --- importexp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexp b/importexp index cc58375..2246846 100755 --- a/importexp +++ b/importexp @@ -75,7 +75,7 @@ do # Get current directory settings eval $(perl -lne ' - if(m{^\s*(?:export\s+)?((?:BUILD|MODEL)_DIR|basedir)=["'\'']?(.*?)["'\'']?\s*$}) { + if(m{^\s*(?:export\s+)?((?:BUILD|MODEL)_DIR|basedir)=["'\'']?(.*?)/*["'\'']?\s*$}) { print "OLD_$1='\''$2'\''" } ' $RUN_SCRIPT) -- GitLab