Skip to content

Commit

Permalink
debug output
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 35021bc commit e73ce28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tests/functionLibraryTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

scriptLocation=$0
scriptDir="${scriptLocation%/*}/"
[[ ! -x "${scriptDir}" ]] && echo "D1: ${scriptDir}"
[[ ! "${scriptDir}" =~ .*tests/$ ]] && echo "D2: ${scriptDir}"
[[ ! -x "${scriptDir}" || ! "${scriptDir}" =~ .*tests/$ ]] && echo "D3: ${scriptDir}"
[[ ! -x "${scriptDir}" || ! "${scriptDir}" =~ .*tests/$ ]] && scriptDir="./"
[[ ! -x "${scriptDir}/../functionLibrary.sh" ]] && echo "D4: ${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 e73ce28

Please sign in to comment.