Skip to content

Commit

Permalink
Add some error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Aug 27, 2013
1 parent 1c82a6a commit e0b0e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sake - a make-a-like implemented in Perl 6

Based on rake
Inspired by rake
2 changes: 2 additions & 0 deletions bin/sake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use v6;
use Sake;

sub MAIN (*@tasks, :$file = 'Sakefile') {
die "No tasks given!" unless +@tasks > 0;
die "Could not find file $file!" unless $file.IO.path ~~ :e;
slurp($file).eval;
for @tasks -> $t { execute($t); }
}
Expand Down

0 comments on commit e0b0e2f

Please sign in to comment.