Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix invalid FOUNDRY_VERSION in setup.sh #447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,26 @@
set -e

# Refer to https://github.com/foundry-rs/foundry/tags for the list of Foundry versions.
FOUNDRY_VERSION=nightly-2cf84d9f3ba7b6f4a9296299e7036ecc24cfa1da
FOUNDRY_VERSION="nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9"

if [[ "$CI" == "true" ]]
then
echo "Skipping as we are in the CI";
exit;
if [[ "${CI}" == "true" ]]; then
echo "Skipping as we are in the CI"
exit
fi

echo "Installing / Updating Foundry..."
if ! command -v foundryup &> /dev/null
then
if ! command -v foundryup &>/dev/null; then
echo "Installing foundryup..."
curl -L https://foundry.paradigm.xyz | bash

FOUNDRY_BASE_DIR=${XDG_CONFIG_HOME:-$HOME}
FOUNDRY_BIN_DIR="$FOUNDRY_BASE_DIR/.foundry/bin"
export PATH="$FOUNDRY_BIN_DIR:$PATH"
FOUNDRY_BASE_DIR=${XDG_CONFIG_HOME:-${HOME}}
FOUNDRY_BIN_DIR="${FOUNDRY_BASE_DIR}/.foundry/bin"
export PATH="${FOUNDRY_BIN_DIR}:${PATH}"
fi

if ! command -v forge &> /dev/null || [ ! "$(forge -V | grep -Eo '\b\w{7}\b')" = "2cf84d9" ]
then
echo "Installing foundry at $FOUNDRY_VERSION..."
foundryup --version $FOUNDRY_VERSION
if ! command -v forge &>/dev/null || [ ! "$(forge -V | grep -Eo '\b\w{7}\b')" = "f625d0f" ]; then
echo "Installing foundry at ${FOUNDRY_VERSION} ..."
foundryup --version ${FOUNDRY_VERSION}
fi

echo "Updating git submodules..."
Expand Down