mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Check that exec() macros havent failed before commencing build
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8758 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
5799b2f9e5
commit
218664f197
@ -316,6 +316,7 @@ sub translate_functions($$)
|
||||
{
|
||||
print "Executing program for module \033[1;32m$module\033[0m ... \033[1;32m$1\033[0m\n";
|
||||
my $replace = `$1`;
|
||||
die "Can't execute '$1'." if !defined $replace or $replace =~ /Configuration failed/;
|
||||
chomp($replace);
|
||||
$line =~ s/exec\("(.+?)"\)/$replace/;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user