Add script for automatically updating main blog view.
This commit is contained in:
parent
060674ed31
commit
3a829d6da5
1
blog/change_blog_nix.sh
Executable file
1
blog/change_blog_nix.sh
Executable file
|
@ -0,0 +1 @@
|
||||||
|
sed -i "s/rev = \".*\"/rev = \"$1\"/" "s/sha256 = \".*\"/sha256 = \"$2\"/" default.nix
|
1
blog/update_blog.sh
Executable file
1
blog/update_blog.sh
Executable 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
|
Reference in New Issue
Block a user