diff --git a/README.md b/README.md index 4d80515..0d10011 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Simple program that runs test cases specified in an autograding.json file and reports results. Useful for previewing how GitHub will run your autograder and project. -Currently this relies on you setting `SHELL` in your environment meaning Windows won't work. +This will only work on Linux as it uses `bash`. Also most GitHub auto-graders runs on the Ubuntu runner image so the commands +are gonna be Linux specific anyway. ## Usage diff --git a/src/runner.rs b/src/runner.rs index df2c5a2..2f9cb4a 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -9,8 +9,7 @@ use anyhow::{anyhow, Result}; use wait_timeout::ChildExt; pub fn setup_phase(cmd: &str) -> Result<()> { - let shell = env::var("SHELL").map_err(|_| anyhow!("SHELL environment variable not set"))?; - let mut child = Command::new(shell) + let mut child = Command::new("bash") .arg("-c") .arg(cmd) .spawn()