diff --git a/install-foundry-zksync b/install-foundry-zksync index cc9c5eff1..4a1a1bb2e 100755 --- a/install-foundry-zksync +++ b/install-foundry-zksync @@ -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"