Commit 62f142b7 authored by Leigh Stoller's avatar Leigh Stoller

Fix for execute service commands that are already encased in single

or double quotes (Mike's torture test).
parent d1226826
......@@ -318,9 +318,12 @@ sub GenerateNodeStatements($)
else {
$directory = "None";
}
if ($command !~ /^\'.*\'$/ && $command !~ /^\".*\"$/) {
$command = "'$command'";
}
$node->addTagStatement(
"addService(emulab.ProgramAgent('$vname', ".
"'$command', $directory, $onexpstart))");
"$command, $directory, $onexpstart))");
last SWITCH;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment