Skip to content

Commit 9bd97cd

Browse files
committed
v2.0.2
1 parent 54fe5af commit 9bd97cd

10 files changed

+17
-13
lines changed
Binary file not shown.

artifacts/sensu-webwhois_v2.0.1_sha512_checksums.txt

-1
This file was deleted.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1a59f0d5ad2b80b0904fde91e8d66c50eec0c083b440888a81a0d558134dcf3daeb72c375935b7c1664e541fe828c94af4b2a1a32775a5ef03195287e82198a0 sensu-webwhois_v2.0.2_linux_amd64.tar.gz

bin/sensu-webwhois

25.9 KB
Binary file not shown.

cmd/sensu-webwhois/main.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@ var (
1616
stringToLookFor = "ist bereits registriert"
1717
timeBegin = time.Now()
1818
httpResp *http.Response
19+
domainToCheck string
1920
fails int
2021
)
2122

2223
func main() {
24+
whiteflag.Alias("d", "domain", "use the given domain for check order")
25+
whiteflag.ParseCommandLine()
26+
domainToCheck = whiteflag.GetString("domain")
27+
2328
run()
2429
}
2530

2631
func run() {
27-
2832
var err error
2933
log.SetOutput(os.Stderr)
3034

31-
whiteflag.Alias("d", "domain", "use the given domain for check order")
32-
whiteflag.ParseCommandLine()
33-
domainToCheck := whiteflag.GetString("domain")
35+
if httpResp != nil {
36+
httpResp.Body.Close() // nolint:errcheck
37+
}
3438

3539
postString := fmt.Sprintf("lang=de&domain=%s&domainwhois_submit=Abfrage+starten", domainToCheck)
3640
postBody := strings.NewReader(postString)

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module github.com/DENICeG/sensu-webwhois
1+
module github.com/DENICeG/sensu-webwhois/v2
22

3-
go 1.14
3+
go 1.15
44

5-
require github.com/danielb42/whiteflag v0.0.0-20200602191841-abf0898b8787
5+
require github.com/danielb42/whiteflag v1.2.6

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/danielb42/whiteflag v0.0.0-20200602191841-abf0898b8787 h1:VhoKodypwQeKoOcUbxjloKjuA5xASmgWJPw/jflZoY0=
2-
github.com/danielb42/whiteflag v0.0.0-20200602191841-abf0898b8787/go.mod h1:espJkkKmRs6/Fh4TijyigrR2kICOV7kZAaIz2jSOkoQ=
1+
github.com/danielb42/whiteflag v1.2.6 h1:0sBArL8zcDkEHGx3jTRIQeLHTvGQ+HMIGn+CeKZtNyU=
2+
github.com/danielb42/whiteflag v1.2.6/go.mod h1:AIE53M4kwgEuYGh7b48zGiyX7jojm67WnqyexJa0+pI=

publish_release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ rm -f artifacts/*
2121
mv sensu-webwhois_${TAG}_linux_amd64.tar.gz sensu-webwhois_${TAG}_sha512_checksums.txt artifacts/
2222

2323
git add .
24-
git commit
24+
git commit -m $TAG
2525
git tag $TAG
2626
git push && git push --tags

sensu/asset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ api_version: core/v2
33
metadata:
44
name: sensu-webwhois
55
spec:
6-
sha512: 90b3d3bc4cee2aed5544bc97722d497f192cf279ea0a4f71900b0feb34e1989e1e680909e1765f1c1f519a235bbd986c4700988befade34fe0290755cf439430
7-
url: https://github.com/DENICeG/sensu-webwhois/releases/download/v2.0.1/sensu-webwhois_v2.0.1_linux_amd64.tar.gz
6+
sha512: 1a59f0d5ad2b80b0904fde91e8d66c50eec0c083b440888a81a0d558134dcf3daeb72c375935b7c1664e541fe828c94af4b2a1a32775a5ef03195287e82198a0
7+
url: https://github.com/DENICeG/sensu-webwhois/releases/download/v2.0.2/sensu-webwhois_v2.0.2_linux_amd64.tar.gz

0 commit comments

Comments
 (0)