mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
Pushed Readfile to .jira.d directory instead of pwd
This commit is contained in:
committed by
Cory Bennett
parent
590244947b
commit
db53622548
@@ -35,8 +35,8 @@ func findTemplate(name string) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getTemplate(name string) (string, error) {
|
func getTemplate(name string) (string, error) {
|
||||||
if _, err := os.Stat(name); err == nil {
|
if _, err := os.Stat(".jira.d/"+name); err == nil {
|
||||||
b, err := ioutil.ReadFile(name)
|
b, err := ioutil.ReadFile(".jira.d/"+name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user