parent
9198f8b49f
commit
ffe45ed13f
2 changed files with 37 additions and 0 deletions
17
publish-blog.sh
Executable file
17
publish-blog.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -d ~/Projects/web/samhuri.net ]]; then
|
||||
cd ~/Projects/web/samhuri.net
|
||||
elif [[ -d ~/samhuri.net ]]; then
|
||||
cd ~/samhuri.net
|
||||
else
|
||||
echo "error: samhuri.net directory not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd _blog
|
||||
git clean -fq
|
||||
git pull
|
||||
cd ..
|
||||
|
||||
make publish_blog
|
||||
20
publish-samhuri.net.sh
Executable file
20
publish-samhuri.net.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -d ~/Projects/web/samhuri.net ]]; then
|
||||
cd ~/Projects/web/samhuri.net
|
||||
elif [[ -d ~/samhuri.net ]]; then
|
||||
cd ~/samhuri.net
|
||||
else
|
||||
echo "error: samhuri.net directory not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd _blog
|
||||
git clean -fq
|
||||
git pull
|
||||
cd ..
|
||||
|
||||
git clean -fq
|
||||
git pull
|
||||
|
||||
make publish
|
||||
Loading…
Reference in a new issue