mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +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()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
//cmd := exec.Command("file", "--mime-type", "-b", entry.Path)
|
cmd := exec.Command("file", "--mime-type", "-b", entry.Path)
|
||||||
cmd := exec.Command("mimetype", "-b", entry.Path)
|
// cmd := exec.Command("mimetype", "-b", entry.Path)
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
cmd.Stdout = &out
|
cmd.Stdout = &out
|
||||||
err = cmd.Run()
|
err = cmd.Run()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue