mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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%!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user