Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
khs1994 committed Sep 1, 2019
1 parent 48718d6 commit 4e84715
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis/docker-entrypoint.sh
Expand Up @@ -13,9 +13,11 @@ cp -a . /srv/gitbook
cd /srv/gitbook

main(){
if [ "$1" = build ];then gitbook build && cp -a _book $srcDir && echo $START && date "+%F %T" && exit 0; fi
exec gitbook serve
exit 0
if [ "$1" = build ];then
gitbook build && cp -a _book $srcDir && echo $START && date "+%F %T" && exit 0
else
exec gitbook serve
fi
}

main $1 $2 $3

0 comments on commit 4e84715

Please sign in to comment.