mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
change mimetype back to file: no mimetype command on MacOs
This commit is contained in:
parent
aae5551978
commit
e8ce29d58d
1 changed files with 2 additions and 2 deletions
|
|
@ -266,8 +266,8 @@ func (self *Api) Upload(lpath, index string) (string, error) {
|
|||
wg.Wait()
|
||||
}
|
||||
if err == nil {
|
||||
//cmd := exec.Command("file", "--mime-type", "-b", entry.Path)
|
||||
cmd := exec.Command("mimetype", "-b", entry.Path)
|
||||
cmd := exec.Command("file", "--mime-type", "-b", entry.Path)
|
||||
// cmd := exec.Command("mimetype", "-b", entry.Path)
|
||||
var out bytes.Buffer
|
||||
cmd.Stdout = &out
|
||||
err = cmd.Run()
|
||||
|
|
|
|||
Loading…
Reference in a new issue