瀏覽代碼

Messages if gogs build fails

Bob Mottram 9 年之前
父節點
當前提交
47c8ec8e8c
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone 查看文件

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