Skip to content

Commit

Permalink
fix: ci for installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Sep 10, 2024
1 parent f6f1046 commit 9a5571d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install-foundry-zksync
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ FOUNDRYUP_ZKSYNC_URL="https://raw.githubusercontent.com/matter-labs/foundry-zksy
echo "Downloading the install script..."
curl -L "$INSTALL_SCRIPT_URL" -o install

echo "Making the install script executable..."
echo "Making install script executable..."
chmod +x ./install

echo "Running the installation script..."
./install | tee install.log # Capture the output to both stdout and a log file
./install | tee install.log # Capture the output to both stdout and a log file

# Extract the exact path from the install.log
# Use sed to precisely capture the path after 'source' and before the next apostrophe
SHELL_CONFIG_FILE=$(sed -n "s/.*Run 'source \(.*\)'.*/\1/p" install.log)

# Source the shell config file if available
if [ -n "$SHELL_CONFIG_FILE" ]; then
if [ -n "${CI}" ]; then
FOUNDRY_BIN_DIR="${XDG_CONFIG_HOME:-$HOME}/.foundry/bin"
Expand Down

0 comments on commit 9a5571d

Please sign in to comment.