Skip to content

Commit

Permalink
make ~/.jira.d directory if not already present
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 3, 2017
1 parent e5dd3a7 commit e72479c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ func main() {
fig.EnvPrefix = "JIRA"
fig.ConfigDir = ".jira.d"

if err := os.MkdirAll(filepath.Join(jiracli.Homedir(), fig.ConfigDir), 0755); err != nil {
fmt.Errorf("%s", err)
panic(jiracli.Exit{Code: 1})
}

o := oreo.New().WithCookieFile(filepath.Join(jiracli.Homedir(), fig.ConfigDir, "cookies.js"))
o = o.WithPostCallback(
func(req *http.Request, resp *http.Response) (*http.Response, error) {
Expand Down

0 comments on commit e72479c

Please sign in to comment.