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"