Avoid changing the current working directory
This commit is contained in:
parent
58a6c9a5f0
commit
5dd3a07a23
|
@ -88,16 +88,16 @@ echo --- Creating tarball
|
||||||
cat > solana-release/bin/solana-validator-cuda <<'EOF'
|
cat > solana-release/bin/solana-validator-cuda <<'EOF'
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")"/..
|
SOLANA_ROOT="$(dirname "$0")"/..
|
||||||
if [[ -f target/perf-libs/env.sh ]]; then
|
if [[ -f "$SOLANA_ROOT"/target/perf-libs/env.sh ]]; then
|
||||||
source target/perf-libs/env.sh
|
source "$SOLANA_ROOT"/target/perf-libs/env.sh
|
||||||
fi
|
fi
|
||||||
if [[ -z $SOLANA_PERF_LIBS_CUDA ]]; then
|
if [[ -z $SOLANA_PERF_LIBS_CUDA ]]; then
|
||||||
echo
|
echo
|
||||||
echo Error: SOLANA_PERF_LIBS_CUDA environment variable undefined
|
echo Error: SOLANA_PERF_LIBS_CUDA environment variable undefined
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
exec bin/_/solana-validator-cuda "$@"
|
exec "$SOLANA_ROOT"/bin/_/solana-validator-cuda "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x solana-release/bin/solana-validator-cuda
|
chmod +x solana-release/bin/solana-validator-cuda
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue