update
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ func init() {
|
|||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
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])
|
b := Bucket(v[1])
|
||||||
if b.Get(v[2]) != v[3] {
|
if b.Get(v[2]) != v[3] {
|
||||||
b.Set(v[2], v[3])
|
b.Set(v[2], v[3])
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ func GitPull(filename string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CompileCode() error {
|
func CompileCode() error {
|
||||||
|
|
||||||
cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname)
|
cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname)
|
||||||
_, err := cmd.Output()
|
_, err := cmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user