Merge pull request #154 from hongruiqi/genepub_fix

fix exists check
This commit is contained in:
astaxie
2013-01-28 23:03:58 -08:00

2
genepub.sh Normal file → Executable file
View File

@@ -3,7 +3,7 @@ if ! which pandoc >/dev/null ;then
echo "请先安装pandoc然后再次运行"
exit 0
fi
[ -f build-web-application-with-golang ] && go build
[ -f build-web-application-with-golang ] || go build
[ -d html ] || mkdir html
pushd html >/dev/null; cp ../*.md .
sed -i 's!https://github.com/astaxie/build-web-application-with-golang/blob/master/!!g' README.md