[#166] fix issue when editing templates specified with full path

This commit is contained in:
Cory Bennett
2018-04-15 17:40:22 -07:00
parent 09a61c3ea1
commit d787ac030c
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"io"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"time"
@@ -30,7 +31,7 @@ func findClosestParentPath(fileName string) (string, error) {
}
func tmpYml(tmpFilePrefix string) (*os.File, error) {
fh, err := ioutil.TempFile("", tmpFilePrefix)
fh, err := ioutil.TempFile("", filepath.Base(tmpFilePrefix))
if err != nil {
return nil, err
}