Messages if gogs build fails

This commit is contained in:
Bob Mottram 2016-02-19 11:29:17 +00:00
parent 48a112d087
commit 47c8ec8e8c
1 changed files with 2 additions and 0 deletions

View File

@ -1470,11 +1470,13 @@ function set_repo_commit {
git checkout master git checkout master
go get -u ./... go get -u ./...
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $'Failed to get gogs'
exit 52792 exit 52792
fi fi
git checkout $repo_commit git checkout $repo_commit
go build go build
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $'Failed to build gogs'
exit 36226 exit 36226
fi fi
systemctl restart gogs systemctl restart gogs