added client checking for client only mods
This commit is contained in:
parent
5e7b7bd03c
commit
4818b27aec
5
main.js
5
main.js
@ -16,8 +16,13 @@ modList.forEach((ele, idx, arr) => {
|
||||
let modinfo = {
|
||||
modName: "",
|
||||
link: link
|
||||
|
||||
}
|
||||
|
||||
if (link == "client"){
|
||||
modinfo.modName = "*" + ele;
|
||||
return;
|
||||
}
|
||||
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition " + link).toString('utf-8'); //change dir and download mod
|
||||
console.log(output);
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user