Skip to content

Commit

Permalink
Make install dir if not present in aptos update revela
Browse files Browse the repository at this point in the history
  • Loading branch information
banool committed Mar 6, 2024
1 parent 76450c4 commit b95e186
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/aptos/src/update/revela.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ impl BinaryUpdater for RevelaUpdateTool {

let install_dir = match self.install_dir.clone() {
Some(dir) => dir,
None => get_additional_binaries_dir(),
None => {
let dir = get_additional_binaries_dir();
// Make the directory if it doesn't already exist.
std::fs::create_dir_all(&dir)
.with_context(|| format!("Failed to create directory: {:?}", dir))?;
dir
},
};

let current_version = match &info.current_version {
Expand Down

0 comments on commit b95e186

Please sign in to comment.