Skip to content

Commit

Permalink
fix: deno path default
Browse files Browse the repository at this point in the history
  • Loading branch information
runreal-warman committed Apr 4, 2024
1 parent eab6d1e commit dab3058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ await new Command()
})
.command('add', 'add a trigger')
.arguments('<script:file>')
.option('-d, --deno-binary <deno:file>', 'override path to the deno binary', { default: 'Deno.execPath()' })
.option('-d, --deno-binary <deno:file>', 'override path to the deno binary', { default: Deno.execPath() })
.action(async ({ denoBinary }, script) => {
if (script.startsWith('file://')) {
script = import.meta.resolve(script)
Expand Down Expand Up @@ -69,7 +69,7 @@ await new Command()
})
.command('update', 'update a trigger')
.arguments('<script:string>')
.option('-d, --deno-binary <deno:file>', 'override path to the deno binary', { default: 'deno' })
.option('-d, --deno-binary <deno:file>', 'override path to the deno binary', { default: Deno.execPath() })
.action(async ({ denoBinary }, script) => {
if (script.startsWith('file://')) {
script = import.meta.resolve(script)
Expand Down

0 comments on commit dab3058

Please sign in to comment.