Skip to content

Commit

Permalink
cd separately
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Dec 17, 2024
1 parent 4436ea6 commit 97569d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,11 @@ job "{{ job.name }}" {

# --verify flag in entrypoint.sh only works when running forge script from the contracts directory.
# Here we setup the environment variables to function when cd'ing into the contracts directory.
cd ${CONTRACT_REPO_ROOT_PATH}
export FORGE_BIN_PATH="../../${XDG_CONFIG_HOME}/.foundry/bin/forge"
export SCRIPT_PATH_PREFIX="scripts"
export CONTRACT_REPO_ROOT_PATH="./"
LOGS="$(cd ${CONTRACT_REPO_ROOT_PATH} && ./entrypoint.sh)"
LOGS="$(./entrypoint.sh)"

# Now cd back to previous directory.
cd ../../
Expand Down

0 comments on commit 97569d6

Please sign in to comment.