1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-11-08 12:09:18 +01:00

check if config is null (#223)

This commit is contained in:
Andreas Wachter 2024-04-03 16:32:55 +02:00 committed by GitHub
parent bf58b23155
commit 54feabae23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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