mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Fix cargo publish while I'm at it
This commit is contained in:
parent
0c0e9e7165
commit
b79fd9e22b
|
@ -62,13 +62,12 @@ pub fn publish(matches: &ArgMatches) -> Result<(), Error> {
|
|||
if *dry_run {
|
||||
println!("Would execute cargo publish for {publishable_crate}");
|
||||
} else {
|
||||
Command::new("cargo")
|
||||
assert!(Command::new("cargo")
|
||||
.arg("publish")
|
||||
.current_dir(&root_directory.join(publishable_crate))
|
||||
.spawn()
|
||||
.status()
|
||||
.map_err(|_| Error::PublishCrate)?
|
||||
.wait()
|
||||
.map_err(|_| Error::PublishCrate)?;
|
||||
.success());
|
||||
}
|
||||
|
||||
published_crates.insert(publishable_crate.to_string());
|
||||
|
|
Loading…
Reference in a new issue