Skip to content
Snippets Groups Projects
Commit 6880e6eb authored by Michael Aaron Murphy's avatar Michael Aaron Murphy
Browse files

Fix #558

Closes #558
parent 9e5b39c0
No related branches found
No related tags found
No related merge requests found
......@@ -282,9 +282,6 @@ impl<'a> PipelineExecution for Shell<'a> {
"cd".into(),
iter::once("cd".into()).chain(job.args.drain()).collect(),
)
} else if Path::new(&job.args[0]).is_dir() {
eprintln!("ion: cannot execute directory as command");
return Err(FAILURE);
} else if self.functions.contains_key::<str>(job.args[0].as_ref()) {
RefinedJob::function(job.args[0].clone().into(), job.args.drain().collect())
} else if self.builtins.contains_key::<str>(job.args[0].as_ref()) {
......
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