Handle CARGO_TARGET_DIR not being set.
This commit is contained in:
parent
51c4e2b62a
commit
b89607fc8b
@ -18,6 +18,9 @@ function die {
|
||||
|
||||
function main {
|
||||
cargo build --no-default-features --features compare --profile release-lto
|
||||
if [ "${CARGO_TARGET_DIR:-}" = "" ]; then
|
||||
CARGO_TARGET_DIR=$(realpath target/)
|
||||
fi
|
||||
PARSE="${CARGO_TARGET_DIR}/release-lto/parse"
|
||||
|
||||
run_compare "org-mode/org-guide.org" "/foreign_documents/org-mode/org-guide.org"
|
||||
|
Loading…
Reference in New Issue
Block a user