From 32cf475cf845e68b369a115b74799bcc30deb1d9 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 21 May 2013 18:10:56 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/Postage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index a400549c4..5262c96a1 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -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; }