fix filepath sep on windows

This commit is contained in:
Hayden 2023-11-15 20:33:07 -06:00
parent c0e8e34065
commit ba09778df9
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -3,7 +3,7 @@ package migrations
import (
"embed"
"os"
"path/filepath"
"path"
)
//go:embed all:migrations
@ -28,12 +28,12 @@ func Write(temp string) error {
continue
}
b, err := Files.ReadFile(filepath.Join("migrations", f.Name()))
b, err := Files.ReadFile(path.Join("migrations", f.Name()))
if err != nil {
return err
}
err = os.WriteFile(filepath.Join(temp, f.Name()), b, 0o644)
err = os.WriteFile(path.Join(temp, f.Name()), b, 0o644)
if err != nil {
return err
}