Use absolute path to env.sh

This commit is contained in:
Michael Vines 2019-05-24 12:27:12 -07:00
parent 9784bbf154
commit f56955a17c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if [[ ! -d target/perf-libs ]]; then
fi
cat > target/perf-libs/env.sh <<'EOF'
SOLANA_PERF_LIBS="$(dirname "${BASH_SOURCE[0]}")"
SOLANA_PERF_LIBS="$(cd $(dirname "${BASH_SOURCE[0]}"); pwd)"
if [[ -r "$SOLANA_PERF_LIBS"/solana-perf-CUDA_HOME.txt ]]; then
CUDA_HOME=$(cat "$SOLANA_PERF_LIBS"/solana-perf-CUDA_HOME.txt)