fix some issues reported from Matrix

This commit is contained in:
idk
2022-03-15 17:04:24 -04:00
parent 3981f53434
commit 12848c30b1
5 changed files with 126 additions and 101 deletions

View File

@ -13,6 +13,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
@ -53,7 +54,7 @@ func NewClient(verbose bool, lang, OS, arch, mirror string, content *embed.FS) (
panic(err)
}
sum := ""
if sums != "" {
if sums != "" && runtime.GOOS == "linux" && runtime.GOARCH == "arm64" {
b, err := ioutil.ReadFile(sums)
if err != nil {
log.Fatal(err)