You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
331 B
27 lines
331 B
#!/bin/sh
|
|
|
|
homePath=$GOPATH/src/tank
|
|
|
|
oldPath=$(pwd)
|
|
|
|
echo "cd homePath"
|
|
cd $homePath
|
|
|
|
echo "shutdown tank"
|
|
source $homePath/build/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
|
|
|
|
|
|
|