This commit is contained in:
LeoKhoa
2018-07-24 11:04:42 +00:00
parent e12e39f010
commit 848a189df1
610 changed files with 0 additions and 204753 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,28 +0,0 @@
var fs = require("fs");
console.log(process.argv.length);
if (process.argv.length != 4) {
console.log("You must specify exact arguments!");
process.exit();
}
var hostsFile = process.argv[2];
var hostsFileTmp = process.argv[3];
var content = '';
fs.readFile(hostsFileTmp, function read(err, data) {
if (err) {
throw err;
}
content = data;
if (content !== '') {
doWrite();
}
});
function doWrite() {
fs.writeFile(hostsFile, content, function(err) {
if(err) {
fs.renameSync(hostsFileTmp, hostsFileTmp + '.err');
return console.log(err);
}
});
}

Binary file not shown.

Binary file not shown.