Skip to content

Commit

Permalink
fix for regex
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley committed Dec 17, 2024
1 parent bdd32c1 commit dc284a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/functionLibraryTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc284a0

Please sign in to comment.