-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env node | ||
import fs from 'fs'; | ||
Check failure on line 2 in scripts/shebangify.js GitHub Actions / lint
|
||
var path = process.argv[2]; | ||
var data = "#!/usr/bin/env node\n\n"; | ||
const path = process.argv[2]; | ||
let data = "#!/usr/bin/env node\n\n"; | ||
Check failure on line 4 in scripts/shebangify.js GitHub Actions / lint
Check warning on line 4 in scripts/shebangify.js GitHub Actions / lint
Check failure on line 4 in scripts/shebangify.js GitHub Actions / lint
|
||
data += fs.readFileSync(path); | ||
fs.writeFileSync(path, data); | ||
Check failure on line 6 in scripts/shebangify.js GitHub Actions / lint
Check failure on line 6 in scripts/shebangify.js GitHub Actions / lint
Check failure on line 6 in scripts/shebangify.js GitHub Actions / lint
|