mirror of https://github.com/optiv/Freeze.git
v1.3
This commit is contained in:
parent
b1d3b6e09d
commit
51033c6647
|
@ -18,5 +18,3 @@ dist/
|
|||
.goreleaser.yaml
|
||||
.gitignore
|
||||
dist/
|
||||
|
||||
dist/
|
||||
|
|
|
@ -22,9 +22,9 @@ func Version() {
|
|||
Version := runtime.Version()
|
||||
Version = strings.Replace(Version, "go1.", "", -1)
|
||||
VerNumb, _ := strconv.ParseFloat(Version, 64)
|
||||
if VerNumb >= 18.1 {
|
||||
if VerNumb >= 19.1 {
|
||||
} else {
|
||||
log.Fatal("Error: The version of Go is to old, please update to version 1.18.1 or later")
|
||||
log.Fatal("Error: The version of Go is to old, please update to version 1.19.1 or later")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ func CheckGarble() {
|
|||
if _, err := os.Stat(cwd + "/.lib/garble"); err == nil {
|
||||
} else {
|
||||
fmt.Println("[!] Missing Garble... Downloading it now")
|
||||
cmd = exec.Command(bin, "GOBIN="+cwd+"/.lib/", "go", "install", "mvdan.cc/garble@v0.7.2")
|
||||
cmd = exec.Command(bin, "GOBIN="+cwd+"/.lib/", "go", "install", "mvdan.cc/garble@latest")
|
||||
var out bytes.Buffer
|
||||
var stderr bytes.Buffer
|
||||
cmd.Stdout = &out
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,5 +1,3 @@
|
|||
module Freeze
|
||||
|
||||
go 1.19
|
||||
|
||||
require golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect
|
||||
|
|
Loading…
Reference in New Issue