From a5c9cee870c0977867ca85b8938ff31d5f8eea3e Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 2 Oct 2021 09:21:58 +0800 Subject: [PATCH] update --- core/init.go | 2 +- core/sys.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/init.go b/core/init.go index 6588ba0..919c032 100644 --- a/core/init.go +++ b/core/init.go @@ -30,7 +30,7 @@ func init() { scanner := bufio.NewScanner(file) for scanner.Scan() { line := scanner.Text() - if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+.*)`).FindStringSubmatch(line); len(v) > 0 { + if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+.*)$`).FindStringSubmatch(line); len(v) > 0 { b := Bucket(v[1]) if b.Get(v[2]) != v[3] { b.Set(v[2], v[3]) diff --git a/core/sys.go b/core/sys.go index 071713b..99debf0 100644 --- a/core/sys.go +++ b/core/sys.go @@ -60,7 +60,6 @@ func GitPull(filename string) (bool, error) { } func CompileCode() error { - cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname) _, err := cmd.Output() if err != nil {