Browse Source

Messages if gogs build fails

Bob Mottram 9 years ago
parent
commit
47c8ec8e8c
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone View File

1470
                     git checkout master
1470
                     git checkout master
1471
                     go get -u ./...
1471
                     go get -u ./...
1472
                     if [ ! "$?" = "0" ]; then
1472
                     if [ ! "$?" = "0" ]; then
1473
+                        echo $'Failed to get gogs'
1473
                         exit 52792
1474
                         exit 52792
1474
                     fi
1475
                     fi
1475
                     git checkout $repo_commit
1476
                     git checkout $repo_commit
1476
                     go build
1477
                     go build
1477
                     if [ ! "$?" = "0" ]; then
1478
                     if [ ! "$?" = "0" ]; then
1479
+                        echo $'Failed to build gogs'
1478
                         exit 36226
1480
                         exit 36226
1479
                     fi
1481
                     fi
1480
                     systemctl restart gogs
1482
                     systemctl restart gogs