Skip to content

Commit fbf4c8b

Browse files
committed
fix InstallBuildDeps
1 parent 7a82ac5 commit fbf4c8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Perl/Dist/APPerl.pm

+2
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,12 @@ sub InstallBuildDeps {
825825
print "mkdir -p $cosmocc\n";
826826
make_path($cosmocc);
827827
print "cd $cosmocc\n";
828+
my $before = getcwd();
828829
chdir($cosmocc) or die "Failed to chdir $cosmocc";
829830
_command_or_die('wget', 'https://cosmo.zip/pub/cosmocc/cosmocc.zip');
830831
_command_or_die('unzip', 'cosmocc.zip');
831832
print "apperlm install-build-deps: setup cosmocc\n";
833+
chdir($before) or die "error resetting directory";
832834
}
833835

834836
# (re)write site config

0 commit comments

Comments
 (0)