You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have scripts to set up our machines. But whenever we run it a second time with git secrets, it will fail on adding the same pattern matcher.
Apparently running git secret --add --global "<existing pattern>" to a pattern already configured will return an exit code 1 thus causing our script to fail.
The text was updated successfully, but these errors were encountered:
**Why**: If a git secrets config is already present, running a `git secrets` command will exit with status 1, preventing the laptop script from executing the rest of the script.
**How**: Add `|| true` to the end of all `git secrets` commands (except the first one that installs git secrets). See: awslabs/git-secrets#24
We have scripts to set up our machines. But whenever we run it a second time with git secrets, it will fail on adding the same pattern matcher.
Apparently running
git secret --add --global "<existing pattern>"
to a pattern already configured will return an exit code 1 thus causing our script to fail.The text was updated successfully, but these errors were encountered: