aboutsummaryrefslogtreecommitdiff
path: root/includes/fetcher/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'includes/fetcher/index.js')
-rw-r--r--includes/fetcher/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/fetcher/index.js b/includes/fetcher/index.js
index edcbcf3..4d1dbbf 100644
--- a/includes/fetcher/index.js
+++ b/includes/fetcher/index.js
@@ -230,7 +230,7 @@
console.log("Saving...");
fs.writeFileSync("./personal/README.md", "<!-- WARNING: Do not modify this file, modify README.mdt instead. This file will get overwritten whenever the project fetcher runs. -->\n" + fs.readFileSync("./personal/README.mdt").toString().replace("%GITLABFILLHERE%", list.join("\n")));
console.log("Publishing changes to GitHub...");
- cp.execSync("git add -A");
- cp.execSync("git commit -m \"Update: " + new Date().toISOString() + "\"");
- cp.execSync("git push origin main");
+ cp.execSync("git add -A", { cwd: "personal" });
+ cp.execSync("git commit -m \"Update: " + new Date().toISOString() + "\"", { cwd: "personal" });
+ cp.execSync("git push origin main", { cwd: "personal" });
})() \ No newline at end of file