diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 2e8bc70a7..986540815 100644 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -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";