fix: handleExec ersetzt winget durch vollen Pfad automatisch
This commit is contained in:
parent
0f496a54e7
commit
154d1bd8c8
@ -105,6 +105,13 @@ func (h *Handler) handleExec(msg Message) Message {
|
||||
return resp
|
||||
}
|
||||
|
||||
// winget durch vollen Pfad ersetzen falls noetig
|
||||
if strings.Contains(command, "winget") {
|
||||
if wp := h.winget(); wp != "" {
|
||||
command = strings.ReplaceAll(command, "winget ", fmt.Sprintf(`& "%s" `, wp))
|
||||
}
|
||||
}
|
||||
|
||||
timeoutSecs := 60
|
||||
if t, ok := data["timeout"].(float64); ok && t > 0 {
|
||||
timeoutSecs = int(t)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user