Skip to content

Commit

Permalink
Fix #21: Action doesn't terminate when command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Jan 31, 2023
1 parent d3c1ed5 commit cc6f408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/action/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class Action {
await this.runCommand(vm)
} finally {
await this.syncBack(vm.ipAddress)
await vm.stop()
}
await vm.stop()
} finally {
await vm.terminate()
fs.rmdirSync(this.tempPath, {recursive: true})
Expand Down

0 comments on commit cc6f408

Please sign in to comment.