CI: Fix compilation problems

This commit is contained in:
nemunaire 2021-09-01 01:27:24 +02:00
commit 3c42bef298
3 changed files with 7 additions and 2 deletions

View file

@ -135,6 +135,7 @@ func main() {
if sDir, err := filepath.Abs(*staticDir); err != nil {
log.Fatal(err)
} else {
log.Println("Serving pages from", sDir)
staticFS = http.Dir(sDir)
sync.DeepReportPath = path.Join(sDir, sync.DeepReportPath)
}
@ -143,6 +144,7 @@ func main() {
if err != nil {
log.Fatal("Unable to cd to static/ directory:", err)
}
log.Println("Serving pages from memory.")
staticFS = http.FS(sub)
sync.DeepReportPath = path.Join("SYNC", sync.DeepReportPath)
}