Fix gmnhg crash on non-existent static/

This commit is contained in:
Timur Demin 2021-01-23 00:25:02 +05:00
parent 7eaf6b7c8a
commit cf65fcc5c3
No known key found for this signature in database
GPG key ID: 9EDF3F9D9286FA20

View file

@ -318,6 +318,12 @@ func main() {
// copy static files to output dir unmodified
if err := filepath.Walk(staticBase, func(p string, info os.FileInfo, err error) error {
if os.IsNotExist(err) {
return nil
}
if err != nil {
return err
}
if info.IsDir() {
return nil
}