Fixed error

pull/423/head
Kang Huaishuai 2019-09-01 20:05:43 +08:00
parent 48718d6035
commit 4e84715725
1 changed files with 5 additions and 3 deletions

View File

@ -13,9 +13,11 @@ cp -a . /srv/gitbook
cd /srv/gitbook cd /srv/gitbook
main(){ main(){
if [ "$1" = build ];then gitbook build && cp -a _book $srcDir && echo $START && date "+%F %T" && exit 0; fi if [ "$1" = build ];then
exec gitbook serve gitbook build && cp -a _book $srcDir && echo $START && date "+%F %T" && exit 0
exit 0 else
exec gitbook serve
fi
} }
main $1 $2 $3 main $1 $2 $3