bin/publish-blog.sh
2011-11-26 23:12:55 -08:00

17 lines
263 B
Bash
Executable file

#!/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 -fdq
git pull
cd ..
make publish_blog