Spawn doesn't wait for the command to finish

This commit is contained in:
Gwilym Kuiper 2022-10-01 22:01:36 +01:00
parent 0678752be0
commit 53aa9b5c10
2 changed files with 4 additions and 0 deletions

View file

@ -66,6 +66,8 @@ pub fn publish(matches: &ArgMatches) -> Result<(), Error> {
.arg("publish")
.current_dir(&root_directory.join(publishable_crate))
.spawn()
.map_err(|_| Error::PublishCrate)?
.wait()
.map_err(|_| Error::PublishCrate)?;
}

View file

@ -56,6 +56,8 @@ pub fn release(matches: &clap::ArgMatches) -> Result<(), Error> {
Command::new("just")
.arg("ci")
.spawn()
.map_err(|_| Error::JustCiFailed)?
.wait()
.map_err(|_| Error::JustCiFailed)?;
if !dry_run {