Skip to content

Commit 4f274cb

Browse files
author
lihai2333
committed
修复bug
1 parent b38b221 commit 4f274cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/dl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var exec = require('child_process').exec,
44

55
function dl (link) {
66
Re.test(link)?exec("wget " + link.replace(/github.com|hub.fastgit.org/, "download.fastgit.org"), function (err, stdout, srderr) {
7-
err?console.log("哎呀出错了!\n\n" + srderr.replace(/git/g, "fgit")):console.log("看来速度还是不错滴2333");
7+
err?console.log("哎呀出错了!\n\n" + srderr):console.log("看来速度还是不错滴2333");
88
}):fastRe.test(link)?exec("wget " + link, function (err ,stdout, srderr) {
9-
err?console.log("哎呀出错了!\n\n" + srderr.replace(/git/g, "fgit")):console.log("下载完毕,享受读代码的乐趣吧:)");
9+
err?console.log("哎呀出错了!\n\n" + srderr):console.log("下载完毕,享受读代码的乐趣吧:)");
1010
}):console.log("解析链接,导致加速失败(っ﹏-) .。")
1111
}
1212

lib/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function send (data) {
66
Git += " " + data[i];
77
}
88
exec(Git, function (err, stdout, srderr) {
9-
err?console.log(srderr.replace(/git/g, "fgit")):console.log(srderr.replace(/git/g, "fgit") + "\n" + stdout.replace(/git/g, "fgit"));
9+
err?console.log(srderr):console.log(srderr + "\n" + stdout);
1010
})
1111
}
1212

lib/raw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var exec = require('child_process').exec,
33

44
function raw (link) {
55
Re.test(link)?exec("wget " + link.replace("raw.githubusercontent.com", "raw.fastgit.org"), function (err, stdout, srderr) {
6-
err?console.log("哎呀出错了!\n\n" + srderr.replace(/git/g, "fgit")):console.log("看来速度还是不错滴2333");
6+
err?console.log("哎呀出错了!\n\n" + srderr):console.log("看来速度还是不错滴2333");
77
}):console.log("链接有问题,加速失败:(");
88
}
99

0 commit comments

Comments
 (0)