Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better debugging and recursively creates path

this fixes a problem where panda does not attempt to create the full directory
structure if it does not exist (which is likely on a new install). Also
provide a better error message that includes the path panda is trying to use
in the event it is not writeable

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
  • Loading branch information...
commit 1361fcbc0e9d298b38f80c3fb1068f034205e532 1 parent ec22a1e
@xenoterracide xenoterracide authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 bootstrap.pl
View
4 bootstrap.pl
@@ -1,5 +1,6 @@
#!/usr/bin/env perl6
use v6;
+use Shell::Command;
say '==> Bootstrapping Panda';
@@ -12,10 +13,11 @@
$destdir = $prefix;
$panda-base = "$prefix/panda";
try mkdir $destdir;
- try mkdir $panda-base unless $panda-base.IO ~~ :d;
+ try mkpath $panda-base unless $panda-base.IO ~~ :d;
last if $panda-base.path.w
}
unless $panda-base.path.w {
+ warn "panda-base: { $panda-base.perl }";
die "Found no writable directory into which panda could be installed";
}
Please sign in to comment.
Something went wrong with that request. Please try again.