Skip to content

Commit a53a5e2

Browse files
committed
bind cleanup.add handler in runWithCommands too
1 parent 749edda commit a53a5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kbn-dev-utils/src/run/run_with_commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class RunWithCommands<T> {
115115
log,
116116
flags: commandFlags,
117117
procRunner,
118-
addCleanupTask: cleanup.add,
118+
addCleanupTask: cleanup.add.bind(cleanup),
119119
};
120120

121121
const extendedContext = {

0 commit comments

Comments
 (0)