diff --git a/index.js b/index.js index f15bcf6..7a6c865 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + const { exec } = require('child_process'); const fs = require('fs'); const path = require('path'); @@ -38,7 +40,7 @@ function downloadFile(url, filePath) { ensureDirectoryExists(filePath); - // 如果文件已存在,跳过下载 + // 如果文件已存��,跳过下载 if (fs.existsSync(filePath)) { console.log(`File already exists: ${filePath}`); return; diff --git a/package.json b/package.json index e90f665..d2ae958 100644 --- a/package.json +++ b/package.json @@ -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"