mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
fix checksum script
This commit is contained in:
parent
8110535675
commit
32dd9403c7
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ cd "$SCRIPT_DIR/.."
|
||||||
tag=$(curl --silent "https://api.github.com/repos/nix-community/nix-direnv/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
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-.*')
|
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 add README.md
|
||||||
git commit -m "README: update fetchurl checksum"
|
git commit -m "README: update fetchurl checksum"
|
||||||
git push
|
git push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue