2020-01-26 13:43:59 -05:00
|
|
|
try {
|
|
|
|
Deno.removeSync("./lock_write_fetch.json");
|
|
|
|
} catch {}
|
|
|
|
|
|
|
|
const fetchProc = Deno.run({
|
|
|
|
stdout: "null",
|
|
|
|
stderr: "null",
|
2020-03-21 17:44:18 -04:00
|
|
|
cmd: [
|
2020-01-26 13:43:59 -05:00
|
|
|
Deno.execPath(),
|
|
|
|
"fetch",
|
|
|
|
"--reload",
|
|
|
|
"--lock=lock_write_fetch.json",
|
|
|
|
"--lock-write",
|
2020-03-28 13:03:49 -04:00
|
|
|
"https_import.ts",
|
|
|
|
],
|
2020-01-26 13:43:59 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
const fetchCode = (await fetchProc.status()).code;
|
|
|
|
console.log(`fetch code: ${fetchCode}`);
|
|
|
|
|
|
|
|
const fetchCheckProc = Deno.run({
|
|
|
|
stdout: "null",
|
|
|
|
stderr: "null",
|
2020-03-21 17:44:18 -04:00
|
|
|
cmd: [
|
2020-01-26 13:43:59 -05:00
|
|
|
Deno.execPath(),
|
|
|
|
"fetch",
|
|
|
|
"--lock=lock_write_fetch.json",
|
2020-03-28 13:03:49 -04:00
|
|
|
"https_import.ts",
|
|
|
|
],
|
2020-01-26 13:43:59 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
const fetchCheckProcCode = (await fetchCheckProc.status()).code;
|
|
|
|
console.log(`fetch check code: ${fetchCheckProcCode}`);
|
|
|
|
|
|
|
|
const runProc = Deno.run({
|
|
|
|
stdout: "null",
|
|
|
|
stderr: "null",
|
2020-03-28 13:03:49 -04:00
|
|
|
cmd: [Deno.execPath(), "--lock=lock_write_fetch.json", "https_import.ts"],
|
2020-01-26 13:43:59 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
const runCode = (await runProc.status()).code;
|
|
|
|
console.log(`run code: ${runCode}`);
|
|
|
|
|
|
|
|
Deno.removeSync("./lock_write_fetch.json");
|