Skip to content

Commit e489179

Browse files
committed
Use BASH_SOURCE
1 parent 508dc46 commit e489179

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ci/build-and-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ cleanup () {
2121
trap cleanup EXIT
2222

2323
# store repo root as variable
24-
REPO_ROOT="$(readlink -f "$(dirname "$(dirname "$0")")")"
25-
OLD_CWD="$(readlink -f .)"
24+
REPO_ROOT="$(readlink -f "$(dirname "$(dirname "${BASH_SOURCE[0]}")")")"
25+
OLD_CWD="$(readlink -f "$PWD")"
2626

2727
pushd "$BUILD_DIR"
2828

0 commit comments

Comments
 (0)