Add script for automatically updating main blog view.

This commit is contained in:
Danila Fedorin 2020-12-31 02:28:55 +00:00
parent 060674ed31
commit 3a829d6da5
2 changed files with 2 additions and 0 deletions

1
blog/change_blog_nix.sh Executable file
View File

@ -0,0 +1 @@
sed -i "s/rev = \".*\"/rev = \"$1\"/" "s/sha256 = \".*\"/sha256 = \"$2\"/" default.nix

1
blog/update_blog.sh Executable file
View File

@ -0,0 +1 @@
nix-prefetch-git --rev refs/heads/master https://dev.danilafe.com/Web-Projects/blog-static.git --quiet | jq '.rev,.sha256' | xargs ./change_blog_nix.sh