aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);