aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/mkstatic
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/mkstatic')
-rwxr-xr-xwinsup/cygwin/mkstatic6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/mkstatic b/winsup/cygwin/mkstatic
index b7a81b0..1a488f8 100755
--- a/winsup/cygwin/mkstatic
+++ b/winsup/cygwin/mkstatic
@@ -55,5 +55,9 @@ exit 0;
sub xsystem(@) {
print join(' ', 'x', @_), "\n" if $x;
- system(@_) == 0 or die "$0: @_[0] $_[1] $_[2]... exited with non-zero status\n";
+ system(@_) == 0 or die "$0: $_[0] $_[1] $_[2]... exited with non-zero status\n";
+}
+
+END {
+ chdir '/tmp'; # Allow $dir directory removal on Windows
}