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) }