Skip to content

Commit

Permalink
Hotfix save path
Browse files Browse the repository at this point in the history
  • Loading branch information
makis-san committed Feb 13, 2023
1 parent e3b9c70 commit b5fc76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/export/ics/createIcsFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default async (calendarTitle: string, events: EventTypes[]) => {
const { saveUrl } = await qa.prompt({
type: 'input',
message: 'Where it should be saved?',
initial: `${path.resolve(__dirname)}`,
initial: `${path.resolve(process.cwd())}`,
name: 'saveUrl'
});

const writePath = `${path.resolve(
__dirname,
process.cwd(),
saveUrl || ''
)}/${calendarTitle}.ics`;

Expand Down

0 comments on commit b5fc76a

Please sign in to comment.