Skip to content

Commit

Permalink
bugfix: resty: the tmp directory has not been deleted. (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaocang authored Sep 2, 2020
1 parent 06c0205 commit 22e531f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/resty
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ if ($^O eq 'msys') {
my $child_pid;

END {
if (!$is_win32 && !defined($child_pid) && defined $prefix_dir) {
if (!$is_win32 && defined($child_pid) && defined $prefix_dir) {
my $saved_status = $?;
system("rm -rf $prefix_dir") == 0
or warn "failed to remove temp directory $prefix_dir: $!";
Expand Down

0 comments on commit 22e531f

Please sign in to comment.