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
go get -u ./...
if [ ! "$?" = "0" ]; then
echo $'Failed to get gogs'
exit 52792
fi
git checkout $repo_commit
go build
if [ ! "$?" = "0" ]; then
echo $'Failed to build gogs'
exit 36226
fi
systemctl restart gogs