Separate tmp migrations dir from home in join

- enable separator between home and migrations dir
This commit is contained in:
Rob Mulholand 2019-06-27 10:12:12 -05:00
parent 0558792282
commit f0bcf930f4

View File

@ -73,7 +73,7 @@ func (m *manager) RunMigrations() error {
// Setup a temporary directory to hold transformer db migrations
func (m *manager) setupMigrationEnv() error {
var err error
m.tmpMigDir, err = helpers.CleanPath(filepath.Join("$GOPATH/src", m.GenConfig.Home+".plugin_migrations"))
m.tmpMigDir, err = helpers.CleanPath(filepath.Join("$GOPATH/src", m.GenConfig.Home, ".plugin_migrations"))
if err != nil {
return err
}