Commit b8bea68c authored by Ian Lynagh's avatar Ian Lynagh

Check for failure when running wget

parent 5dd95594
......@@ -118,6 +118,12 @@ sub download {
my @cmd = ("wget", $from, "-O", $to);
message "== running @cmd";
system @cmd;
if ($? == -1) {
die "Failed to execute wget: $!\n";
}
elsif ($? != 0) {
die "wget failed: $?\n";
}
}
sub darcs {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment