Messages if gogs build fails
This commit is contained in:
parent
48a112d087
commit
47c8ec8e8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue