Skip to content
Snippets Groups Projects
Commit 6f4d65d0 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Use subprocess::plain in `time` command

parent 9c2bef74
No related branches found
No related tags found
1 merge request!2Use subprocess::plain in `time` command
Pipeline #28817 passed
use crate::datasets::DatasetsToml;
use crate::errors::Result;
use crate::subcommands::fetch::fetch;
use crate::Megafine;
use crate::{subprocess, Megafine};
use dialoguer::console::style;
use std::fs;
use std::path::PathBuf;
......@@ -40,13 +40,8 @@
let zstd = zstd::Decoder::new(archive_file)?;
tar::Archive::new(zstd).unpack(tmp.path())?;
let mut command = process::Command::new("sh");
command
.arg("-c")
.arg(&args.script)
.current_dir(tmp.path())
.env("HGRCPATH", "")
.env("PAGER", "");
let mut command = subprocess::plain("sh");
command.arg("-c").arg(&args.script).current_dir(tmp.path());
print!("Running in {}", style(&dataset.name).bold());
if args.script_output {
println!();
......
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