mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-01 04:03:39 +00:00
48a3624644
Fix #216 #218
20 lines
294 B
Bash
Executable File
20 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
|
|
START=`date "+%F %T"`
|
|
|
|
if [ $1 = "sh" ];then sh ; exit 0; fi
|
|
|
|
rm -rf node_modules _book
|
|
|
|
cp -a . ../gitbook
|
|
|
|
cd ../gitbook
|
|
|
|
main(){
|
|
if [ "$1" = build ];then gitbook build; cp -a _book ../gitbook-src; echo $START; date "+%F %T"; exit 0; fi
|
|
gitbook serve
|
|
exit 0
|
|
}
|
|
|
|
main $1 $2 $3
|