Skip to content

Commit

Permalink
Don't split command
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffa5 committed Jan 12, 2021
1 parent e7991fc commit 48d1ea5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/bin/tectonic/v2cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! The "v2cli" command-line interface -- a "multitool" interface resembling
//! Cargo, as compared to the classic "rustc-like" CLI.

use std::{borrow::ToOwned, ffi::OsString, path::PathBuf, process, str::FromStr};
use std::{ffi::OsString, path::PathBuf, process, str::FromStr};
use structopt::{clap::AppSettings, StructOpt};
use tectonic::{
self,
Expand Down Expand Up @@ -211,13 +211,8 @@ impl WatchCommand {
#[cfg(not(any(unix, windows)))]
final_command.push_str(" ; echo [Finished running]");

let split_command: Vec<String> = final_command
.split_whitespace()
.map(ToOwned::to_owned)
.collect();

let mut args = watchexec::ArgsBuilder::default();
args.cmd(split_command)
args.cmd(vec![final_command])
.paths(vec![std::env::current_dir()?])
.ignores(vec!["build".to_owned()]);

Expand Down

0 comments on commit 48d1ea5

Please sign in to comment.