1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-10-18 13:48:07 +02:00

check if config is null

This commit is contained in:
Andreas Wachter 2024-04-03 08:31:48 +02:00
parent bf58b23155
commit c7ea026559

@ -83,6 +83,10 @@ func readConfigFile(configfile string) []*types.Conf {
} }
} }
if c == nil {
continue
}
for i, local := range c.Destination.Local { for i, local := range c.Destination.Local {
c.Destination.Local[i].Path = substituteHomeForTildeInPath(local.Path) c.Destination.Local[i].Path = substituteHomeForTildeInPath(local.Path)
} }