init the project
This commit is contained in:
27
build/script/update.sh
Normal file
27
build/script/update.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
homePath=$GOPATH/src/tank
|
||||
|
||||
oldPath=$(pwd)
|
||||
|
||||
echo "cd homePath"
|
||||
cd $homePath
|
||||
|
||||
echo "shutdown tank"
|
||||
source $homePath/doc/script/shutdown.sh
|
||||
|
||||
echo "git reset"
|
||||
git reset --hard HEAD
|
||||
|
||||
echo "git pull"
|
||||
git pull
|
||||
|
||||
echo "go install tank"
|
||||
go install tank
|
||||
|
||||
cd $oldPath
|
||||
|
||||
echo "startup tank"
|
||||
source $homePath/doc/script/startup.sh
|
||||
|
||||
|
Reference in New Issue
Block a user