Use runcmd instead of call to system.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
34c19ca896
commit
911364a69b
@ -86,9 +86,7 @@ if (&runcmd($chcmd) != 0) {
|
||||
# check & run the postscript
|
||||
if (-f $scriptname)
|
||||
{
|
||||
# TODO - change this to runcmd??
|
||||
my $rc = system("$scriptname");
|
||||
if ($rc >> 8)
|
||||
if (&runcmd($scriptname) != 0)
|
||||
{
|
||||
print "$::sdate xcataixpost: Could not run $scriptname.\n";
|
||||
print $::LOG_FILE "$::sdate xcataixpost: Could not run $scriptname.\n";
|
||||
|
Loading…
Reference in New Issue
Block a user