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") .arg("publish")
.current_dir(&root_directory.join(publishable_crate)) .current_dir(&root_directory.join(publishable_crate))
.spawn() .spawn()
.map_err(|_| Error::PublishCrate)?
.wait()
.map_err(|_| Error::PublishCrate)?; .map_err(|_| Error::PublishCrate)?;
} }

View file

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