From bdd32c109910dbc1e043cb1ef7db0a03e96e5460 Mon Sep 17 00:00:00 2001 From: Adam Farley Date: Tue, 17 Dec 2024 12:26:35 +0000 Subject: [PATCH] bug fix Signed-off-by: Adam Farley --- lib/tests/functionLibraryTests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/tests/functionLibraryTests.sh b/lib/tests/functionLibraryTests.sh index ca5770edb..37821981b 100644 --- a/lib/tests/functionLibraryTests.sh +++ b/lib/tests/functionLibraryTests.sh @@ -16,10 +16,9 @@ scriptLocation=$0 scriptDir=${scriptLocation%/*} -echo "scriptdir = ${scriptDir}" +echo "scriptdir = ${scriptDir}/" [[ ! -x "${scriptDir}" || ! "${scriptDir}" =~ .*tests$ ]] && scriptDir="./" -echo "scriptdir = ${scriptDir}" -[[ ! -x "${scriptDir}../functionLibrary.sh" ]] && echo "Error: Please launch this script with a full path, or from within the test directory." && exit 1 +[[ ! -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"