fix getpostscript.pm call (noversion)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-05-21 18:10:56 +00:00
parent e815ba5ac9
commit 32cf475cf8

View File

@ -460,7 +460,8 @@ sub makescript {
undef(%::GLOBAL_SN_HASH);
undef(%::GLOBAL_TABDUMP_HASH);
if ((defined($nofiles)) &&($nofiles == 1)){ # return array
return \$inc;
my @scriptd = grep { /\S/ } split(/\n/,$inc);
return @scriptd;
} else { # files were created
return 0;
}