scripts/update-checksums.sh: also update template

This commit is contained in:
Jörg Thalheim 2021-12-16 10:14:43 +01:00
parent 72f9111d49
commit b61138e130

View file

@ -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/')
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}\"!"
git add README.md
git commit -m "README: update fetchurl checksum"
git push
sed -i README.md template/.envrc -e "s!sha256-.*!${sha256}\"!"
git add README.md template/.envrc
git commit -m "update fetchurl checksum"
#git push