Skip to content

Commit

Permalink
Pushed Readfile to .jira.d directory instead of pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
colton22 authored and coryb committed Dec 2, 2019
1 parent 5902449 commit db53622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jiracli/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func findTemplate(name string) ([]byte, error) {
}

func getTemplate(name string) (string, error) {
if _, err := os.Stat(name); err == nil {
b, err := ioutil.ReadFile(name)
if _, err := os.Stat(".jira.d/"+name); err == nil {
b, err := ioutil.ReadFile(".jira.d/"+name)
if err != nil {
return "", err
}
Expand Down

0 comments on commit db53622

Please sign in to comment.