diff --git a/ci/build-and-test.sh b/ci/build-and-test.sh index 7e35e89..fc8c8c9 100755 --- a/ci/build-and-test.sh +++ b/ci/build-and-test.sh @@ -21,8 +21,8 @@ cleanup () { trap cleanup EXIT # store repo root as variable -REPO_ROOT="$(readlink -f "$(dirname "$(dirname "$0")")")" -OLD_CWD="$(readlink -f .)" +REPO_ROOT="$(readlink -f "$(dirname "$(dirname "${BASH_SOURCE[0]}")")")" +OLD_CWD="$(readlink -f "$PWD")" pushd "$BUILD_DIR"