Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
call rm_rf only if directory doesn't exist
  • Loading branch information
dagurval committed May 18, 2013
1 parent 94ee0e5 commit 02765c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bootstrap.pl
Expand Up @@ -42,11 +42,12 @@
%*ENV<PERL6LIB> ~= "{$env_sep}{cwd}/lib";

shell "perl6 bin/panda install File::Tools JSON::Tiny Test::Mock {cwd}";
rm_rf "$destdir/panda/src"; # XXX This shouldn't be necessary, I think
# that src should not be kept at all, but
# I figure out how to do that nicely, let's
# at least free boostrap from it

if "$destdir/panda/src".IO ~~ :d {
rm_rf "$destdir/panda/src"; # XXX This shouldn't be necessary, I think
# that src should not be kept at all, but
# I figure out how to do that nicely, let's
# at least free boostrap from it
}
say "==> Please make sure that $destdir/bin is in your PATH";

unlink "$panda-base/projects.json";

0 comments on commit 02765c9

Please sign in to comment.