diff --git a/handler/fetchself/fetch.go b/handler/fetchself/fetch.go index e46b54d..7dfacc7 100644 --- a/handler/fetchself/fetch.go +++ b/handler/fetchself/fetch.go @@ -147,8 +147,7 @@ type Parser interface { type fastdfetchParser struct{} func (p *fastdfetchParser) Parse(cmd string) (SystemInfo, error) { - fullCmd := fmt.Sprintf("%s --color_blocks off", cmd) - output, err := exec.Command(fullCmd).Output() + output, err := exec.Command(cmd).Output() if err != nil { return SystemInfo{}, err } @@ -223,8 +222,7 @@ func (p *fastdfetchParser) Parse(cmd string) (SystemInfo, error) { type neofetchParser struct{} func (p *neofetchParser) Parse(cmd string) (SystemInfo, error) { - fullCmd := fmt.Sprintf("%s --color_blocks off", cmd) - output, err := exec.Command(fullCmd).Output() + output, err := exec.Command(cmd, "--color_blocks", "off").Output() if err != nil { return SystemInfo{}, err }