A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Print commands and their arguments as they are executed.
|
|
|
|
set -x
|
|
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
|
|
set -e
|
|
|
|
|
|
|
|
yarn --frozen-lockfile --ignore-scripts --har
|
|
|
|
|
|
|
|
# Move HAR file into directory with consistent name so that we can cache it
|
|
|
|
mkdir -p build-artifacts/yarn-install-har
|
|
|
|
har_files=(./*.har)
|
|
|
|
if [[ -f "${har_files[0]}" ]]
|
|
|
|
then
|
|
|
|
mv ./*.har build-artifacts/yarn-install-har/
|
|
|
|
fi
|
|
|
|
|
|
|
|
# use @lavamoat/allow-scripts instead of manually running install scripts so directory change does not persist
|
|
|
|
yarn allow-scripts
|