From 47c8ec8e8ca77d70da9f5a0f7ab42a6f1bf4c6b1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Feb 2016 11:29:17 +0000 Subject: [PATCH] Messages if gogs build fails --- src/freedombone | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone b/src/freedombone index e0aee71d..036600b8 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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