Skip to content

Commit

Permalink
shell now returns a Proc::Status object that bools.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Oct 29, 2013
1 parent 08e09b0 commit 9f2591b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Panda/Builder.pm
Expand Up @@ -87,7 +87,7 @@ method build($where) {
say "Compiling $file to {compsuffix}";
shell "$*EXECUTABLE_NAME --target={compsuffix} "
~ "--output=$dest $file"
and fail "Failed building $file";
or fail "Failed building $file";
}
1;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Panda/Fetcher.pm
Expand Up @@ -19,7 +19,7 @@ method fetch($from, $to) {

sub git-fetch($from, $to) {
shell "git clone -q $from \"$to\""
and fail "Failed cloning git repository '$from'";
or fail "Failed cloning git repository '$from'";
return True;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Panda/Tester.pm
Expand Up @@ -6,7 +6,7 @@ method test($where, :$prove-command = 'prove') {
if 't'.IO ~~ :d {
withp6lib {
my $c = "$prove-command -e $*EXECUTABLE_NAME -r t/";
shell $c and fail "Tests failed";
shell $c or fail "Tests failed";
}
}
};
Expand Down

0 comments on commit 9f2591b

Please sign in to comment.