Hide log on reinstall self command

This commit is contained in:
David Vennik
2022-12-23 18:27:47 +00:00
parent 14269c981b
commit f3b950b1a3
2 changed files with 10 additions and 12 deletions

View File

@@ -175,10 +175,11 @@ func main() {
}
SemVer = fmt.Sprintf("v%d.%d.%d", Major, Minor, Patch)
PathBase = tr.Filesystem.Root() + "/"
versionFile := `// Package indra is the root level package for Indranet, a low latency,
// Lightning Network monetised distributed VPN protocol designed for providing
// strong anonymity to valuable internet traffic.
package indra
var dir string
if dir, e = os.Getwd(); check(e) {
}
name := filepath.Base(dir)
versionFile := `package ` + name + `
import (
"fmt"
@@ -265,7 +266,7 @@ func Version() string {
}
// Lastly, we need to regenerate the version of bumper if it changed.
// Rather than check, we will just run the compilation command anyway.
if e = runCmd("go", "install", "./cmd/bumper/."); check(e) {
if e = runCmd("go", "install", "./cmd/bumper/."); e != nil {
os.Exit(1)
}
return

View File

@@ -1,6 +1,3 @@
// Package indra is the root level package for Indranet, a low latency,
// Lightning Network monetised distributed VPN protocol designed for providing
// strong anonymity to valuable internet traffic.
package indra
import (
@@ -13,11 +10,11 @@ var (
// GitRef is the gitref, as in refs/heads/branchname.
GitRef = "refs/heads/main"
// ParentGitCommit is the commit hash of the parent HEAD.
ParentGitCommit = "56e0fb915465bb9523d23f84280c01ba7072ca55"
ParentGitCommit = "6ceae0f9d988a50d845410ed4ae47fc1122db5f3"
// BuildTime stores the time when the current binary was built.
BuildTime = "2022-12-23T18:22:40Z"
BuildTime = "2022-12-23T18:27:47Z"
// SemVer lists the (latest) git tag on the build.
SemVer = "v0.0.219"
SemVer = "v0.0.220"
// PathBase is the path base returned from runtime caller.
PathBase = "/home/loki/src/github.com/Indra-Labs/indra/"
// Major is the major number from the tag.
@@ -25,7 +22,7 @@ var (
// Minor is the minor number from the tag.
Minor = 0
// Patch is the patch version number from the tag.
Patch = 219
Patch = 220
)
// Version returns a pretty printed version information string.