mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-29 16:39:45 +00:00
(fix): typo fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user