Skip to content

Commit

Permalink
🐛 linux文件目录问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kongnet committed Jul 12, 2019
1 parent cf5b671 commit a28d41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function runCcjt () {
let useCaseTotal = 0
let groupCount = [0, 0, 0]// 分组统计
for (let i = 0; i < ccAry.length; i++) {
if (ccAry[i].includes('\\')) {
let splitStr = os.includes('win32') ? '\\' : '/'
if (ccAry[i].includes(splitStr)) {
fileName = ccAry[i]
continue
}
Expand Down

0 comments on commit a28d41c

Please # to comment.