diff --git a/configui.go b/configui.go index 2f31e2f..3f9bdcd 100644 --- a/configui.go +++ b/configui.go @@ -19,7 +19,7 @@ import ( var UNIX_SHELL = "/usr/bin/sh" var WIN_SHELL = "C:\\Windows\\System32\\cmd" -const version = "v0.1.11" +const version = "v0.1.12" //go:embed templates var tmplFS embed.FS diff --git a/handler.go b/handler.go index ceee09c..d2e0c49 100644 --- a/handler.go +++ b/handler.go @@ -145,7 +145,7 @@ func (cui *ConfigUI) DoAction(w http.ResponseWriter, r *http.Request) { panic(fmt.Errorf("another task of %s is running with pid: %d", name, v.pid)) } - file := &File{Name: name, Action: v.Cmd, owner: cui} + file := &File{Name: name, Cmd: v.Cmd, owner: cui} go func() { <-time.After(time.Millisecond * 10) cui.Actions[i].pid = file.pid