Skip to content

Commit

Permalink
Use BASH_SOURCE
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Nov 25, 2024
1 parent 508dc46 commit e489179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e489179

Please sign in to comment.