Radish alpha
r
Radicle CI adapter for native CI
Radicle
Git (anonymous pull)
Log in to clone via SSH
Revert "temporary fix: sourced .bashrc to set $PATH"
Lars Wirzenius committed 2 years ago
commit 3b1cfbdc1ff0ecd1d93e21ecaba4a6cd4fcacd7f
parent 072b942b1ea7c152fe0cc2ebccb53aeb5fa2d8d6
1 file changed +1 -4
modified src/main.rs
@@ -149,10 +149,7 @@ fn run(
    log.write(format!("CI run spec: {:#?}\n", runspec))?;

    debug!("running CI in cloned repository");
-
    let snippet = format!(
-
        "set -xeuo pipefail\nsource $HOME/.bashrc\n\n{}",
-
        &runspec.shell
-
    );
+
    let snippet = format!("set -xeuo pipefail\n{}", &runspec.shell);
    runcmd(&mut run_log, &["bash", "-c", &snippet], src)?;

    write_response(&Response::finished(RunResult::Success))?;