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
|
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
|
||||||
|
|
Loading…
Reference in New Issue