bin/publish-blog.sh
2011-11-26 23:02:09 -08:00

17 lines
261 B
Bash
Executable file

#!/bin/sh
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