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; }