Skip to content

Commit

Permalink
Merge pull request #33 from mikepea/make_jirad
Browse files Browse the repository at this point in the history
Fixes #32 - make path to cookieFile if it's not present
  • Loading branch information
coryb committed Jan 29, 2016
2 parents d8bce08 + ac170e9 commit 20b32c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"net/url"
"os"
"os/exec"
"path"
"runtime"
"strings"
"time"
Expand Down Expand Up @@ -87,6 +88,7 @@ func (c *Cli) saveCookies(cookies []*http.Cookie) {
}
jsonWrite(c.cookieFile, mergedCookies)
} else {
mkdir(path.Dir(c.cookieFile))
jsonWrite(c.cookieFile, cookies)
}
}
Expand Down

0 comments on commit 20b32c2

Please sign in to comment.