automatic git version control in scripts

This commit is contained in:
Rakarake 2026-04-05 23:26:40 +02:00
parent 6a5baa5416
commit 770a20de04
2 changed files with 8 additions and 0 deletions

3
new.sh
View file

@ -1,3 +1,6 @@
#!/bin/sh
git pull
printf "name of file (e.g. day67.md): "
read filename
cargo run -- new > blogs/$filename

View file

@ -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"