only check on config if it is getting used

This commit is contained in:
2022-02-16 21:22:42 +01:00
parent a373c07fb0
commit 2a7e233cdb
2 changed files with 6 additions and 10 deletions

View File

@@ -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{}