mirror of
https://github.com/fosskers/cargo-aur.git
synced 2026-03-09 07:13:12 -05:00
fix: ensure target/cargo-aur exists before writing to it
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user