trim '/' from path when using systemFS

should fix #58.
This commit is contained in:
Harvey Tindall
2021-02-17 22:02:26 +00:00
parent a92baa5d18
commit cdc837e781
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ func (app *appContext) GetPath(sect, key string) (fs.FS, string) {
if strings.HasPrefix(val, "jfa-go:") {
return localFS, strings.TrimPrefix(val, "jfa-go:")
}
return app.systemFS, val
return app.systemFS, strings.TrimPrefix(val, "/")
}
func (app *appContext) loadConfig() error {