mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-23 19:50:21 +00:00
Debug command output
This commit is contained in:
@@ -1565,9 +1565,11 @@ sub setup_env_by_configure_file {
|
||||
my $cmd = undef;
|
||||
foreach $cmd (@{ $$config_ref{script_prev} }) {
|
||||
log_this($running_log_fd, "$cmd");
|
||||
&runcmd($cmd);
|
||||
#MG
|
||||
my @output = &runcmd($cmd);
|
||||
if ($::RUNCMD_RC != 0) {
|
||||
$$error_ref = "Fail to run $cmd";
|
||||
$$error_ref = "Failed to run $cmd OUTPUT: @output";
|
||||
log_this($running_log_fd, "$cmd", "OUTPUT ", @output);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user