diff options
Diffstat (limited to 'cmd/build')
-rw-r--r-- | cmd/build/build.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/build/build.go b/cmd/build/build.go index 326b964..f165361 100644 --- a/cmd/build/build.go +++ b/cmd/build/build.go @@ -566,9 +566,11 @@ func main() { log.Panic(errors.Errorf("could not get config: %v", err)) } - config.BaseURL.URL, err = url.Parse(ioConfig.BaseURL.String()) - if err != nil { - log.Panic(errors.Errorf("highly unlikely: %v", err)) + if ioConfig.BaseURL.URL != nil { + config.BaseURL.URL, err = url.Parse(ioConfig.BaseURL.String()) + if err != nil { + log.Panic(errors.Errorf("highly unlikely: %v", err)) + } } err = os.RemoveAll(ioConfig.Destination) |