Skip to content
Snippets Groups Projects
Commit 322c8db7 authored by Hunter Goldstein's avatar Hunter Goldstein Committed by Michael Aaron Murphy
Browse files

Empty argument slice now results in empty command (#335)

parent b674b149
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ impl Job {
}
self.args = expanded;
self.command = self.args[0].clone().into();
self.command = self.args.first().map_or("".into(), |c| c.clone().into());
}
pub fn build_command(&mut self) -> Command {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment