mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
README: update fetchurl checksum
This commit is contained in:
parent
d26fc52f8d
commit
dbf5e87258
1 changed files with 2 additions and 2 deletions
|
|
@ -4,10 +4,10 @@ set -euo pipefail
|
|||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
cd "$SCRIPT_DIR/.."
|
||||
|
||||
tag=$(git describe)
|
||||
tag=$(curl --silent "https://api.github.com/repos/nix-community/nix-direnv/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
sha256=$(direnv fetchurl "https://raw.githubusercontent.com/nix-community/nix-direnv/${tag}/direnvrc" | grep -m1 -o 'sha256-.*')
|
||||
|
||||
sed -i README.md -e "s!sha256-[^\"]+!sha256-${sha256}!"
|
||||
sed -i README.md -e "s!sha256-.*+!sha256-${sha256}\"!"
|
||||
git add README.md
|
||||
git commit -m "README: update fetchurl checksum"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue