added overwrite option
This commit is contained in:
parent
8d785b407c
commit
c6ab659e78
7
main.js
7
main.js
@ -13,9 +13,12 @@ var modList = mods.mod_list;
|
||||
var modDownloads = mods.mod_downloads;
|
||||
|
||||
modList.forEach((ele, idx, arr) => {
|
||||
if (Object.keys(oldRegistry).includes(ele)) {
|
||||
return;
|
||||
if (process.argv[2] != "overwrite"){
|
||||
if (Object.keys(oldRegistry).includes(ele)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let link = modDownloads[ele];
|
||||
let modinfo = {
|
||||
modName: "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user