Skip to content

Commit 0230857

Browse files
committed
provide install link
1 parent 98b8aa2 commit 0230857

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nodesc check ~/.node_home --type validator/rpc/snapshot/archival
1010

1111
## Install
1212
```bash
13-
go install github.com/bcdevtools/node-setup-check/cmd/nodesc@latest
13+
cd ~ && go install github.com/bcdevtools/node-setup-check/cmd/nodesc@latest
1414
```
1515

1616
## Spec

cmd/check.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ func checkLatestRelease() {
135135
latestTagName := strings.TrimPrefix(release.TagName, "v")
136136
currentVersion := strings.TrimPrefix(constants.VERSION, "v")
137137
if latestTagName != currentVersion {
138-
warnRecord(fmt.Sprintf("latest release is v%s, must use latest version to prevent bugs and new logics", latestTagName), "")
138+
warnRecord(
139+
fmt.Sprintf("latest release is v%s, must use latest version to prevent bugs and new logics", latestTagName),
140+
fmt.Sprintf("cd ~ && go install github.com/bcdevtools/node-setup-check/cmd/nodesc@%s", release.TagName),
141+
)
139142
}
140143
}
141144

0 commit comments

Comments
 (0)