Skip to content

Commit f58c7f7

Browse files
committed
fix: shells -> execa remnants
1 parent 4f0e123 commit f58c7f7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

bin/cmds/docker_cmds/build.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ export const handler = async (argv) => {
5454
}
5555

5656
// start builder
57-
const build = await $({ stdio: 'inherit' })`docker build ${args} ${context}`;
58-
59-
// cleanup right away
60-
await fs.unlink(tmpDockerfile);
61-
62-
// print error if shit happened
63-
if (build.code !== 0) {
64-
console.log('Error: failed to build docker image');
65-
process.exit(1);
57+
try {
58+
await $({ stdio: 'inherit' })`docker build ${args} ${context}`;
59+
} finally {
60+
// cleanup right away
61+
await fs.unlink(tmpDockerfile);
6662
}
6763
};

0 commit comments

Comments
 (0)