Displaying 1 result from an estimated 1 matches for "kickstart_test".
2007 Dec 24
2
Build a cmdline for exec from optional parameters
How can I do this?:
foo { name:
$bar => "frob"
}
define foo( $bar = false, $baz = false ) {
if #$bar and $baz both defined
$cmd = "frobnicate --bar=$bar --baz=$baz ${name}"
else if #$bar defined
$cmd = "frobnicate --bar=$bar ${name}"
else if #$baz defined
$cmd = "frobnicate --baz=$baz ${name}"
else