Skip to content

Commit

Permalink
fix: fix path issue for #57
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 30, 2024
1 parent 704551b commit bd65a38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file added docs/adr/template.md
Empty file.
2 changes: 1 addition & 1 deletion src/lib/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { generate } from './generate'

function getTemplatePath (language: string) {
const fileExt = Config.getDocExtension()
const customTemplate = path.join(Config.getSavePath(), 'template.', fileExt)
const customTemplate = path.join(Config.getSavePath(), 'template.' + fileExt)
if (fs.existsSync(customTemplate)) {
return customTemplate
} else {
Expand Down

0 comments on commit bd65a38

Please sign in to comment.