awstats-cli
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -9,5 +9,3 @@ const { existsSync } = require('fs') | ||
module.exports = function (dirname) { | ||
if (!dirname) dirname = '' | ||
module.exports = function (dirname = '') { | ||
// 获取初始化路径 | ||
@@ -58,5 +56,5 @@ const initPath = resolvePath(dirname) | ||
SetVersion() | ||
SetVersion(dirname) | ||
logger.info('Clone success') | ||
} |
{ | ||
"name": "awstats-cli", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Command line interface for AWStats", | ||
@@ -5,0 +5,0 @@ "main": "./bin/AWStats", |
@@ -19,4 +19,4 @@ const { join } = require('path') | ||
function SetVersion() { | ||
const pkgPath = resolvePath('package.json') | ||
function SetVersion(dirname) { | ||
const pkgPath = resolvePath(dirname,'package.json') | ||
const pkg = require(pkgPath) | ||
@@ -23,0 +23,0 @@ const awstatsVersion = pkg.dependencies.awstats || '' |
Sorry, the diff of this file is not supported yet
9398
79