mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
8210e3a812
This PR converts `generate-lavamoat-policies.sh` to `.js` using Yargs. This makes it easier to only generate policy files for a specific build type (using the `-t` flag), which is often useful during Flask development. In addition, the `lavamoat:background:auto` scripts are renamed, and the main readme is updated with some useful tips. Note that `lavamoat:background:auto:dev` is removed and `lavamoat:background:auto` should be used during local development.
16 lines
202 B
Bash
Executable File
16 lines
202 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
yarn lavamoat:auto:ci
|
|
|
|
if git diff --exit-code
|
|
then
|
|
echo "LavaMoat policy is up-to-date"
|
|
else
|
|
echo "LavaMoat policy requires updates"
|
|
exit 1
|
|
fi
|