mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 00:25:43 +00:00
fix: filepath sep on windows (#615)
This commit is contained in:
parent
c0e8e34065
commit
b408318acb
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue