From 770a20de04222ed41600bd75e4d130f5a41fd61b Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 5 Apr 2026 23:26:40 +0200 Subject: [PATCH] automatic git version control in scripts --- new.sh | 3 +++ push.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/new.sh b/new.sh index d6b9ffe..94810cd 100755 --- a/new.sh +++ b/new.sh @@ -1,3 +1,6 @@ +#!/bin/sh +git pull + printf "name of file (e.g. day67.md): " read filename cargo run -- new > blogs/$filename diff --git a/push.sh b/push.sh index f42d4e3..8bddad4 100755 --- a/push.sh +++ b/push.sh @@ -1,4 +1,9 @@ #!/bin/sh + +git add blogs +git commit -m "blog update" +git push + for file in $(find public -type f) do echo "uploading: $file"