Skip to content

Commit

Permalink
fixed browser opening with relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevac committed May 10, 2020
1 parent f9427c8 commit 3a6081c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ func main() {
flag.IntVar(&limit, "limit", 0, "limit number of coubs to download by this number (0 - no limit)")
flag.Parse()

destinationDir_, err := filepath.Abs(destinationDir)
if err != nil {
log.Fatalf("error while converting destination dir '%s' to absolute path: %s", destinationDir, err)
}
destinationDir = destinationDir_

if err := populateConfig(); err != nil {
log.Fatalf("error while populating config: %s", err)
}
Expand Down

0 comments on commit 3a6081c

Please sign in to comment.