Skip to content

Commit 22c7b68

Browse files
committed
chore: add #!/usr/bin/env node
1 parent b4b270f commit 22c7b68

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const { exec } = require('child_process');
24
const fs = require('fs');
35
const path = require('path');
@@ -38,7 +40,7 @@ function downloadFile(url, filePath) {
3840

3941
ensureDirectoryExists(filePath);
4042

41-
// 如果文件已存在,跳过下载
43+
// 如果文件已存��,跳过下载
4244
if (fs.existsSync(filePath)) {
4345
console.log(`File already exists: ${filePath}`);
4446
return;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "resource-save-script",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"main": "index.js",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)