From 9a5571d52fb79d946e5722265cfa06341da34729 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 10 Sep 2024 17:55:21 -0500 Subject: [PATCH] fix: ci for installation --- install-foundry-zksync | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"