automatic git version control in scripts
This commit is contained in:
parent
6a5baa5416
commit
770a20de04
2 changed files with 8 additions and 0 deletions
3
new.sh
3
new.sh
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
git pull
|
||||||
|
|
||||||
printf "name of file (e.g. day67.md): "
|
printf "name of file (e.g. day67.md): "
|
||||||
read filename
|
read filename
|
||||||
cargo run -- new > blogs/$filename
|
cargo run -- new > blogs/$filename
|
||||||
|
|
|
||||||
5
push.sh
5
push.sh
|
|
@ -1,4 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
git add blogs
|
||||||
|
git commit -m "blog update"
|
||||||
|
git push
|
||||||
|
|
||||||
for file in $(find public -type f)
|
for file in $(find public -type f)
|
||||||
do
|
do
|
||||||
echo "uploading: $file"
|
echo "uploading: $file"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue