From c7ea0265592666db1cff76ff0862be2c1e97bfff Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Wed, 3 Apr 2024 08:31:48 +0200 Subject: [PATCH] check if config is null --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 725c5ea..560c3e4 100644 --- a/main.go +++ b/main.go @@ -83,6 +83,10 @@ func readConfigFile(configfile string) []*types.Conf { } } + if c == nil { + continue + } + for i, local := range c.Destination.Local { c.Destination.Local[i].Path = substituteHomeForTildeInPath(local.Path) }