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