Turns out mono eats exit codes. AWESOME.
This commit is contained in:
parent
1b75b0ba92
commit
5984f0d442
|
@ -60,8 +60,7 @@ public void Release(string file)
|
|||
|
||||
if (!builder.Build(m_Cfg, build))
|
||||
{
|
||||
Console.WriteLine("Build failed!");
|
||||
System.Environment.Exit(1);
|
||||
throw new Exception("Build failed!");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -9,18 +9,16 @@ require 'helpers.pm';
|
|||
|
||||
chdir('../../installer/builder');
|
||||
|
||||
my $output;
|
||||
if ($^O eq "linux") {
|
||||
system("mono builder.exe");
|
||||
$output = `mono builder.exe`;
|
||||
} else {
|
||||
system("builder.exe");
|
||||
$output = `builder.exe`;
|
||||
}
|
||||
|
||||
if ($? != 0)
|
||||
{
|
||||
die "Build failed: $!\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($output =~ /Build failed/) {
|
||||
die "Build failed!\n";
|
||||
} else {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user