mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Spawn doesn't wait for the command to finish
This commit is contained in:
parent
0678752be0
commit
53aa9b5c10
|
@ -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)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue