Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from vidar-team/dev
Browse files Browse the repository at this point in the history
v0.0.3
  • Loading branch information
wuhan005 authored Apr 12, 2020
2 parents e9b1432 + 286e15d commit 2f7b550
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: "386"
Expand All @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: amd64
Expand All @@ -29,7 +29,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: arm
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: arm64
Expand All @@ -51,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: "386"
Expand All @@ -62,7 +62,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: amd64
Expand All @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: "386"
Expand All @@ -84,19 +84,8 @@ jobs:
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected].1
uses: wuhan005/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: amd64
GOOS: windows
release-windows-arm:
name: release windows/arm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: wuhan005/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GOARCH: arm
GOOS: windows
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Cardinal 是由 Vidar-Team 开发的 AWD 比赛平台,使用 Go 编写。本

![Cardinal Frontend](https://img.cdn.n3ko.co/lsky/2020/03/03/7b6161f88fb94.png)

![Cardinal Backend](https://img.cdn.n3ko.co/lsky/2020/03/03/a7ccd8a8fbd43.png)
![Cardinal Backend](https://img.cdn.n3ko.co/lsky/2020/03/03/a7ccd8a8fbd43.png#)

## 功能介绍
* 管理员创建题目、分配题目靶机、参赛队伍、生成 Flag、发布公告
Expand Down
4 changes: 2 additions & 2 deletions src/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func InputString(str *string, hint string) {

stdin := bufio.NewReader(os.Stdin)
input, err = stdin.ReadString('\n')
input = strings.Trim(input, "\n")
if err != nil || input == ""{
input = strings.Trim(input, "\r\n")
if err != nil || input == "" {
if *str != "" {
break
}
Expand Down

0 comments on commit 2f7b550

Please sign in to comment.