This commit is contained in:
2022-04-12 15:56:57 +02:00
parent 8a713e497d
commit 997525be2f

View File

@@ -56,7 +56,7 @@ func GetConfig() *Config {
// Load env file // Load env file
envFile := filepath.Join(filepath.Dir(absConfig), ".autorestic.env") envFile := filepath.Join(filepath.Dir(absConfig), ".autorestic.env")
err = godotenv.Load(envFile) err = godotenv.Load(envFile)
if err == nil { if err == nil && !flags.CRON_LEAN {
colors.Faint.Println("Using env:\t", envFile) colors.Faint.Println("Using env:\t", envFile)
} }
} else { } else {