mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
Turns out mono eats exit codes. AWESOME.
This commit is contained in:
parent
1b75b0ba92
commit
5984f0d442
@ -60,8 +60,7 @@ namespace AMXXRelease
|
|||||||
|
|
||||||
if (!builder.Build(m_Cfg, build))
|
if (!builder.Build(m_Cfg, build))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Build failed!");
|
throw new Exception("Build failed!");
|
||||||
System.Environment.Exit(1);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -9,18 +9,16 @@ require 'helpers.pm';
|
|||||||
|
|
||||||
chdir('../../installer/builder');
|
chdir('../../installer/builder');
|
||||||
|
|
||||||
|
my $output;
|
||||||
if ($^O eq "linux") {
|
if ($^O eq "linux") {
|
||||||
system("mono builder.exe");
|
$output = `mono builder.exe`;
|
||||||
} else {
|
} else {
|
||||||
system("builder.exe");
|
$output = `builder.exe`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($? != 0)
|
if ($output =~ /Build failed/) {
|
||||||
{
|
die "Build failed!\n";
|
||||||
die "Build failed: $!\n";
|
} else {
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user