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:
parent
bf58b23155
commit
54feabae23
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 {
|
for i, local := range c.Destination.Local {
|
||||||
c.Destination.Local[i].Path = substituteHomeForTildeInPath(local.Path)
|
c.Destination.Local[i].Path = substituteHomeForTildeInPath(local.Path)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user