mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-06 10:30:39 +00:00
only check on config if it is getting used
This commit is contained in:
@@ -63,7 +63,12 @@ func GetConfig() *Config {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return
|
||||
cfgFileName := ".autorestic"
|
||||
colors.Error.Println(
|
||||
fmt.Sprintf(
|
||||
"cannot find configuration file '%s.yml' or '%s.yaml'.",
|
||||
cfgFileName, cfgFileName))
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
var versionConfig interface{}
|
||||
|
Reference in New Issue
Block a user