From 8927824d59f7b736afb2a1deb66cf9334cee50de Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 23 Feb 2023 12:29:42 +0200 Subject: [PATCH] make sure the script is executed in the right place --- tests/build_and_run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/build_and_run.sh b/tests/build_and_run.sh index 765e053bf7..d36e0745e6 100755 --- a/tests/build_and_run.sh +++ b/tests/build_and_run.sh @@ -4,6 +4,13 @@ PWD="../" GIT_BRANCH=$1 VERSION_NUMBER=$2 +# run the script from the correct location + +if [[ $(pwd) != */tests ]]; then + echo "Please run the script from the 'tests' directory." + exit 1 +fi + # lets make sure the branch is up to date # --------------------------------------- git checkout develop