Move user-triggered scripts into their own folder

This commit is contained in:
2021-10-21 22:36:54 -07:00
parent 7612c204e1
commit 095d0e3e84
2 changed files with 0 additions and 0 deletions

3
scripts/change_blog_nix.sh Executable file
View File

@@ -0,0 +1,3 @@
echo "New rev: $1"
echo "New SHA256: $2"
sed -i "s/rev = \".*\"/rev = \"$1\"/;s/sha256 = \".*\"/sha256 = \"$2\"/" default.nix

1
scripts/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 --fetch-submodules | jq '.rev,.sha256' | xargs ./change_blog_nix.sh