Checking for full path of new config file location
This commit is contained in:
parent
e866bad23d
commit
b60885c429
|
@ -33,7 +33,7 @@ type Resources struct {
|
|||
// Read from the configuration file
|
||||
func (s *Settings) Read(out interface{}) error {
|
||||
localConfigPath := s.Resources.Config
|
||||
if _, err := os.Stat(".realize/"); err == nil {
|
||||
if _, err := os.Stat(".realize/" + s.Resources.Config); err == nil {
|
||||
localConfigPath = ".realize/" + s.Resources.Config
|
||||
}
|
||||
content, err := s.Stream(localConfigPath)
|
||||
|
|
Loading…
Reference in New Issue