mirror of
https://github.com/cooperspencer/gickup
synced 2024-10-18 07:38:08 +02:00
check if config is null
This commit is contained in:
parent
bf58b23155
commit
c7ea026559
4
main.go
4
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user