mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Add STDIN redirection support for stanza definition (#1863)
close-issue: #1671
This commit is contained in:
parent
7bcf328b0f
commit
7b87c6e417
@ -69,7 +69,7 @@ if ((($^O =~ /^linux/i) && ($ENV{'SHELL'} =~ /\/ksh$/)) || !defined($ENV{'TERM'}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (-p STDIN) {
|
||||
unless (-t STDIN) {
|
||||
while (<STDIN>) { $data .= $_; }
|
||||
$cmdref->{stdin}->[0] = $data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user