From 5dd3a07a2314fe20ff7a5d6e5a19b54ebde0ee28 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 20 Sep 2019 12:46:29 -0700 Subject: [PATCH] Avoid changing the current working directory --- ci/publish-tarball.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/publish-tarball.sh b/ci/publish-tarball.sh index 09236e7fb..2548bd7e4 100755 --- a/ci/publish-tarball.sh +++ b/ci/publish-tarball.sh @@ -88,16 +88,16 @@ echo --- Creating tarball cat > solana-release/bin/solana-validator-cuda <<'EOF' #!/usr/bin/env bash set -e -cd "$(dirname "$0")"/.. -if [[ -f target/perf-libs/env.sh ]]; then - source target/perf-libs/env.sh +SOLANA_ROOT="$(dirname "$0")"/.. +if [[ -f "$SOLANA_ROOT"/target/perf-libs/env.sh ]]; then + source "$SOLANA_ROOT"/target/perf-libs/env.sh fi if [[ -z $SOLANA_PERF_LIBS_CUDA ]]; then echo echo Error: SOLANA_PERF_LIBS_CUDA environment variable undefined exit 1 fi -exec bin/_/solana-validator-cuda "$@" +exec "$SOLANA_ROOT"/bin/_/solana-validator-cuda "$@" EOF chmod +x solana-release/bin/solana-validator-cuda fi