mirror of https://github.com/dmarkham/enumer.git
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c0f685c6bf
|
@ -134,7 +134,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to tmpfile first
|
// Write to tmpfile first
|
||||||
tmpFile, err := ioutil.TempFile("", fmt.Sprintf("%s_enumer_", types[0]))
|
tmpName := fmt.Sprintf("%s_enumer_", filepath.Base(types[0]))
|
||||||
|
tmpFile, err := ioutil.TempFile(filepath.Dir(types[0]), tmpName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("creating temporary file for output: %s", err)
|
log.Fatalf("creating temporary file for output: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue