Skip to content

Commit

Permalink
check if config is null
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Apr 3, 2024
1 parent bf58b23 commit c7ea026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c7ea026

Please sign in to comment.