diff --git a/src/elements/command/if.rs b/src/elements/command/if.rs index a8554e21..f6d6c7cc 100644 --- a/src/elements/command/if.rs +++ b/src/elements/command/if.rs @@ -17,7 +17,7 @@ pub struct IfCommand { impl Command for IfCommand { fn exec(&mut self, _: &mut ShellCore, _: &mut Pipe) -> Option {None} - fn run_command(&mut self, _: &mut ShellCore, _: bool) {} + fn run(&mut self, _: &mut ShellCore, _: bool) {} fn get_text(&self) -> String { self.text.clone() } fn get_redirects(&mut self) -> &mut Vec { &mut self.redirects } fn set_force_fork(&mut self) { self.force_fork = true; }