fix exists check

This commit is contained in:
hongruiqi
2013-01-29 14:51:18 +08:00
parent ebe10c2e80
commit 5e684ce6f0

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