fix: ensure target/cargo-aur exists before writing to it

This commit is contained in:
Colin Woodbury
2023-10-02 16:14:24 +09:00
parent 1a0fbf55f9
commit eb0e27f77a

View File

@@ -206,6 +206,10 @@ fn work(args: Args) -> Result<(), Error> {
musl_check()?
}
// Ensure the target can actually be written to. Otherwise the `tar`
// operation later on will fail.
std::fs::create_dir_all("target/cargo-aur")?;
let config = cargo_config()?;
// Warn if the user if still using the old metadata definition style.