Skip to content

Commit f12e966

Browse files
authored
Force script to exit upon successful completion (#26)
For as-yet-unknown reasons, we've experienced a few runs that "hang" after the `Process complete.` line is output.
1 parent 75cb61c commit f12e966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/class-init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public function start( array $args, array $assoc_args ): void {
9494
}
9595

9696
WP_CLI::line( 'Process complete.' );
97+
exit( 0 );
9798
} catch ( Throwable $throwable ) {
9899
$this->_handle_error( $throwable );
99100
}

0 commit comments

Comments
 (0)