Skip to content

Commit 883e99f

Browse files
committed
refactor shebang
1 parent c3d0582 commit 883e99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/shebang.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFile, writeFile } from 'fs/promises'
22

3-
const filename = process.argv[2]
3+
const [,,filename] = process.argv
44
const shebang = '#!/usr/bin/env node\n'
55

66
const contents = await readFile( filename, 'utf-8' )

0 commit comments

Comments
 (0)