Apply suggestions from code review

This commit is contained in:
Markus Hofbauer 2024-11-07 18:44:28 +01:00 committed by GitHub
parent 7deb886ee9
commit e66f66852f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -25,4 +25,4 @@ The plugin has a copy of [the completion script from the git repository][1].
| Function | Description |
| -------- | ---------------------------------------- |
| bzlmod_integrety | Generate bzlmod integrity value |
| sri-hash | Generate SRI hash used by bzlmod |

View File

@ -4,6 +4,6 @@ alias bzt='bazel test'
alias bzr='bazel run'
alias bzq='bazel query'
bzlmod_integrety() {
sri-hash() {
openssl dgst -sha256 -binary $1 | openssl base64 -A | sed 's/^/sha256-/'
}