diff --git a/scripts/install_foundry.sh b/scripts/install_foundry.sh index c2298bf96..f8e44e7e3 100755 --- a/scripts/install_foundry.sh +++ b/scripts/install_foundry.sh @@ -8,13 +8,9 @@ export XDG_CONFIG_HOME=$HOME FOUNDRY_VERSION=v0.1.0 curl -L https://raw.githubusercontent.com/ava-labs/foundry/${FOUNDRY_VERSION}/foundryup/install > /tmp/foundry-install-script -sed -i "s/\/ava-labs\/foundry\/master\/foundryup/\/ava-labs\/foundry\/${FOUNDRY_VERSION}\/foundryup/g" /tmp/foundry-install-script -mkdir -p $HOME/.foundry/bin +sed -i 's/\/ava-labs\/foundry\/master\/foundryup/\/ava-labs\/foundry\/${FOUNDRY_VERSION}\/foundryup/g' /tmp/foundry-install-script cat /tmp/foundry-install-script | bash -echo "export PATH=$PATH:$HOME/.foundry/bin" >> ~/.bashrc -cat ~/.bashrc +echo "export PATH=\"$PATH:$HOME/.foundry/bin\"">> ~/.bashrc source ~/.bashrc -ls $HOME/.foundry/bin export PATH=$PATH:$HOME/.foundry/bin:$HOME/.cargo/bin -printenv foundryup --version ${FOUNDRY_VERSION} \ No newline at end of file