From 3c431f1f537ae07bf454c6064fa77d6b65ab177e Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 27 Jan 2012 20:14:00 +0000 Subject: [PATCH] Fixed bug where double quotes are removed from template. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/tools/mkay4z | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/mkay4z b/xCAT-server/share/xcat/tools/mkay4z index db8b8d87b..f72d803ab 100644 --- a/xCAT-server/share/xcat/tools/mkay4z +++ b/xCAT-server/share/xcat/tools/mkay4z @@ -547,7 +547,9 @@ if ($version eq '10') { } # Print out template -`echo "$tmpl" > $template_path`; +open (TMPL, ">$template_path"); +print TMPL "$tmpl"; +close (TMPL); open(FILE, $template_path); # Go through each line @@ -586,7 +588,9 @@ while(my $ln = ) { close(FILE); # Print out modified template -`echo "$mod_tmpl" > $template_path`; +open (TMPL, ">$template_path"); +print TMPL "$mod_tmpl"; +close (TMPL); # Done print "Done! See autoyast template under $template_path\n";