Skip to content

Commit

Permalink
chore: add #!/usr/bin/env node
Browse files Browse the repository at this point in the history
  • Loading branch information
luckfunc committed Dec 14, 2024
1 parent b4b270f commit 22c7b68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

const { exec } = require('child_process');
const fs = require('fs');
const path = require('path');
Expand Down Expand Up @@ -38,7 +40,7 @@ function downloadFile(url, filePath) {

ensureDirectoryExists(filePath);

// 如果文件已存在,跳过下载
// 如果文件已存��,跳过下载
if (fs.existsSync(filePath)) {
console.log(`File already exists: ${filePath}`);
return;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resource-save-script",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 22c7b68

Please sign in to comment.