(fix): typo fix

This commit is contained in:
TheDevisi
2026-04-11 12:52:56 +03:00
parent 86339e69b9
commit 4a696d1002
2 changed files with 2 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ func (p *Program) loadConfig() *Config {
}
return cfg
}
if err := json.Unmarshal(data, p.Config); err != nil {
if err := json.Unmarshal(data, cfg); err != nil {
log("WARNING: Could not parse config file: %v", err)
return cfg
}

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"os"
"os/exec"
"runtime"
"time"
)
@@ -18,7 +17,7 @@ func (p *Program) olcrtcRun() {
}
var cmd *exec.Cmd
if runtime.GOOS == "windows" {
if p.Config.Os == "windows" {
cmd = exec.Command("cmd.exe", "/C", p.RunString)
} else {
cmd = exec.Command("sh", "-c", p.RunString)