From dc284a0eca29630c576d94f666ad9e08ebb44541 Mon Sep 17 00:00:00 2001 From: Adam Farley Date: Tue, 17 Dec 2024 12:27:20 +0000 Subject: [PATCH] fix for regex Signed-off-by: Adam Farley --- lib/tests/functionLibraryTests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/functionLibraryTests.sh b/lib/tests/functionLibraryTests.sh index 37821981b..37fd3441e 100644 --- a/lib/tests/functionLibraryTests.sh +++ b/lib/tests/functionLibraryTests.sh @@ -17,7 +17,7 @@ scriptLocation=$0 scriptDir=${scriptLocation%/*} echo "scriptdir = ${scriptDir}/" -[[ ! -x "${scriptDir}" || ! "${scriptDir}" =~ .*tests$ ]] && scriptDir="./" +[[ ! -x "${scriptDir}" || ! "${scriptDir}" =~ .*tests/$ ]] && scriptDir="./" [[ ! -x "${scriptDir}/../functionLibrary.sh" ]] && echo "Error: Please launch this script with a full path, or from within the test directory." && exit 1 source "${scriptDir}/../functionLibrary.sh"