aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-13 16:54:18 +0100
committerMinteck <contact@minteck.org>2022-02-13 16:54:18 +0100
commit45a6a73db69d3654ae245a4b9495caf6b9733efa (patch)
treebba1505a5a40906e6d480b67527ba9ce5ee8b178
parent87cc4ea025bdc4af14d778272e15ca1f82ed1f2e (diff)
downloadtwilight-45a6a73db69d3654ae245a4b9495caf6b9733efa.tar.gz
twilight-45a6a73db69d3654ae245a4b9495caf6b9733efa.tar.bz2
twilight-45a6a73db69d3654ae245a4b9495caf6b9733efa.zip
Fix upgrade not creating directories (again,yes)
-rw-r--r--hooks/apply_update.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/apply_update.js b/hooks/apply_update.js
index 411ade8..3cfcbc5 100644
--- a/hooks/apply_update.js
+++ b/hooks/apply_update.js
@@ -16,7 +16,7 @@ module.exports = (pkg, tempDir) => {
return arrayOfFiles
}
- dirs = getAllDirs(home + "/packages/" + tempDir);
+ dirs = getAllDirs((home + "/packages/" + tempDir).replaceAll("\\", "/")).map(i => i.replaceAll("\\", "/").replaceAll((home + "/packages/" + tempDir).replaceAll("\\", "/") + "/", ""));
for (let dir of dirs) {
if (!fs.existsSync(home + "/packages/" + pkg + "/" + dir)) {
fs.mkdirSync(home + "/packages/" + pkg + "/" + dir);