Apply suggestions from code review

Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
pull/154/head
Muhammad Atif Ali 1 year ago committed by GitHub
parent 0c4d5d53c9
commit cd2899650e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,7 +44,7 @@ export const executeScriptInContainer = async (
const instance = findResourceInstance(state, "coder_script");
const id = await runContainer(image);
// const resp = await execContainer(id, [shell, "-c", instance.script]);
command = command + " " + instance.script;
command = command + "; " + instance.script;
const resp = await execContainer(id, [shell, "-c", command]);
const stdout = resp.stdout.trim().split("\n");
const stderr = resp.stderr.trim().split("\n");

Loading…
Cancel
Save