Skip to content

Commit

Permalink
Cleanup temp dirs when using --show-opts
Browse files Browse the repository at this point in the history
  • Loading branch information
exodist committed Jul 24, 2024
1 parent b86429d commit 4239ba2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/App/Yath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,10 @@ sub handle_debug {
$exit //= 0;
}

exit($exit) if defined $exit;
if (defined $exit) {
remove_tree($settings->workspace->workdir, {safe => 1, keep_root => 0}) if $settings->check_group('workspace');
exit($exit);
}
}

sub page_out {
Expand Down

0 comments on commit 4239ba2

Please sign in to comment.