From 54feabae23d9ab13c006f881df107a207d270bb9 Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Wed, 3 Apr 2024 16:32:55 +0200 Subject: [PATCH] check if config is null (#223) --- 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) }