Skip to content

Commit

Permalink
fix build darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
TenderIronh committed Dec 9, 2021
1 parent 8353c1c commit a2387fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package main

import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/tls"
"encoding/json"
"fmt"
"net"
"net/http"
"os/exec"
"time"
)

Expand Down Expand Up @@ -138,3 +140,11 @@ func netInfo() *NetInfo {
}
return nil
}

func execOutput(name string, args ...string) string {
cmdGetOsName := exec.Command(name, args...)
var cmdOut bytes.Buffer
cmdGetOsName.Stdout = &cmdOut
cmdGetOsName.Run()
return cmdOut.String()
}

0 comments on commit a2387fe

Please sign in to comment.