Skip to content
Snippets Groups Projects
Commit 5226cc1f authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Attempt to move file

parent 4c465e14
No related branches found
No related tags found
No related merge requests found
Pipeline #4121 passed
...@@ -122,7 +122,8 @@ async function main() { ...@@ -122,7 +122,8 @@ async function main() {
try { try {
await fs.promises.mkdir(path.join(repoPath, 'public/data/'), {recursive: true}) await fs.promises.mkdir(path.join(repoPath, 'public/data/'), {recursive: true})
console.log('Created public/data') console.log('Created public/data')
await fs.promises.writeFile(path.join(repoPath, 'public/data/data.json'), outputString) await fs.promises.writeFile(path.join(repoPath, 'data.json'), outputString)
await fs.promises.rename(path.join(repoPath, 'data.json'), path.join(repoPath, 'public/data/data.json'))
} catch (err) { } catch (err) {
console.error('Could not write output to public folder in repo') console.error('Could not write output to public folder in repo')
console.error(err) console.error(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment