Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <adfarley@redhat.com>
  • Loading branch information
adamfarley committed Dec 17, 2024
1 parent aaa7c1d commit bdd32c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tests/functionLibraryTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit bdd32c1

Please sign in to comment.