aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-03-12 08:30:46 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-03-12 08:30:46 +0100
commitf0a09b9348e265254be25c322e53c3e10da38fe2 (patch)
treed21598506a5a157a67340da8ed278fcbaae8f603 /scripts
parentFail verify-all script if there are errors during validation (diff)
parentMerge pull request #63 from jaredkotoff/asana (diff)
downloadferdium-recipes-f0a09b9348e265254be25c322e53c3e10da38fe2.tar.gz
ferdium-recipes-f0a09b9348e265254be25c322e53c3e10da38fe2.tar.zst
ferdium-recipes-f0a09b9348e265254be25c322e53c3e10da38fe2.zip
Merge branch 'master' of https://github.com/getferdi/recipes
Diffstat (limited to 'scripts')
-rw-r--r--scripts/add_github.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/add_github.js b/scripts/add_github.js
index add3575..543e347 100644
--- a/scripts/add_github.js
+++ b/scripts/add_github.js
@@ -57,6 +57,8 @@ const compressed = path.join(__dirname, 'tmp.tar.gz');
57 console.log("Creating temporary directory"); 57 console.log("Creating temporary directory");
58 58
59 await fs.ensureDir(tempDir); 59 await fs.ensureDir(tempDir);
60 await fs.ensureDir(recipeSrc);
61 await fs.ensureDir(recipeSrcTmp);
60 62
61 console.log("Downloading " + repo); 63 console.log("Downloading " + repo);
62 64
@@ -71,10 +73,11 @@ const compressed = path.join(__dirname, 'tmp.tar.gz');
71 73
72 console.log("Moving directories"); 74 console.log("Moving directories");
73 75
74 await fs.move(recipeSrc, recipeSrcTmp); 76 await fs.move(recipeSrc, recipeSrcTmp, {overwrite: true});
75 await fs.move( 77 await fs.move(
76 path.join(tempDir, `${repoInfo.name}-master`), 78 path.join(tempDir, `${repoInfo.name}-master`),
77 recipeSrc 79 recipeSrc,
80 {overwrite: true}
78 ); 81 );
79 82
80 console.log("Adding to repository"); 83 console.log("Adding to repository");