Skip to content

Move checksum to a dedicated file #94

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fabc489b39a5e9c999c7cab4d281cdbbcbad10ec2f8b9a7f7144ad701b6bfdc7 nvm-install.sh
980a7a4a7f6a453346191bbe5c03bb378a91c92b10573a86fd29ee6f4b7f5d35 foundryup
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ install_node()
fi

wget -q -O nvm-install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
if [ ! "fabc489b39a5e9c999c7cab4d281cdbbcbad10ec2f8b9a7f7144ad701b6bfdc7 nvm-install.sh" = "$(sha256sum nvm-install.sh)" ]; then
if ! grep nvm-install.sh checksum | sha256sum --check --status --strict; then
echo "NVM installer does not match expected checksum! exiting"
exit 1
fi

bash nvm-install.sh
rm nvm-install.sh

Expand All @@ -155,7 +156,7 @@ install_foundry()
echo "[-] Foundry target detected, installing foundry stable"

wget -q -O foundryup https://raw.githubusercontent.com/foundry-rs/foundry/871eaaa6d621c4fae67380bc8306d049ad5168b7/foundryup/foundryup
if [ ! "980a7a4a7f6a453346191bbe5c03bb378a91c92b10573a86fd29ee6f4b7f5d35 foundryup" = "$(sha256sum foundryup)" ]; then
if ! grep foundryup checksum | sha256sum --check --status --strict; then
echo "Foundry installer does not match expected checksum! exiting"
exit 1
fi
Expand Down