mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Fixed path used in LoadFiles
This commit is contained in:
parent
a19bf50471
commit
2154657d34
1 changed files with 2 additions and 1 deletions
|
|
@ -177,6 +177,7 @@ func LoadFiles(paths ...string) (Files, error) {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return nil, fmt.Errorf("failed to stat file or directory: %v", err)
|
return nil, fmt.Errorf("failed to stat file or directory: %v", err)
|
||||||
}
|
}
|
||||||
|
// skip any directories found
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
@ -185,7 +186,7 @@ func LoadFiles(paths ...string) (Files, error) {
|
||||||
return nil, fmt.Errorf("failed to read file: %v", err)
|
return nil, fmt.Errorf("failed to read file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
outputs[path] = b
|
outputs[expandedPath] = b
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue