builder: template: Quote parameters when printing.

This is for documentation only so the quoting doesn't actually matter,
but it's better for the user to understand what is really being run.
This commit is contained in:
Richard W.M. Jones
2017-10-17 21:56:01 +01:00
parent c4a6f2a23f
commit f484403213

View File

@@ -824,8 +824,8 @@ and make_virt_install_command os arch ks tmpname tmpout tmpefivars
and print_virt_install_command chan vi =
Array.iter (
fun arg ->
if arg.[0] = '-' then fprintf chan "\\\n %s " arg
else fprintf chan "%s " arg
if arg.[0] = '-' then fprintf chan "\\\n %s " (quote arg)
else fprintf chan "%s " (quote arg)
) vi;
fprintf chan "\n\n%!"