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.
28 lines
329 B
28 lines
329 B
|
8 years ago
|
#!/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
|
||
|
|
|
||
|
|
|