Skip to content

Commit

Permalink
Copy zip archive to home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Oct 4, 2023
1 parent 4877f71 commit cebc8da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compile
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ export fn request (url: str, path: str) buffer_Buffer {
res := req.read()
req.close()

fs_copyFileSync(archivePath, process_home + path_SEP + "file.zip") // todo remove
fs_rmSync(archivePath)

if res.status != 200 {
print(res.data.str(), to: "stderr")
process_exit(1)
// process_exit(1) todo return back
}

return res.data
Expand Down

0 comments on commit cebc8da

Please sign in to comment.