Skip to content

Commit

Permalink
Trim NDK path in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Jul 13, 2024
1 parent 7b02b50 commit 66378e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub fn validate_ndk(package: &PackageConfig) -> Result<()> {
let mut ndk_path_str = String::new();
ndk_file.read_to_string(&mut ndk_path_str)?;

let ndk_path = Path::new(&ndk_path_str);
let ndk_path = Path::new(ndk_path_str.trim());
if !ndk_path.exists() {
bail!("NDK Path {} does not exist!", ndk_path.display());
}
Expand Down

0 comments on commit 66378e6

Please sign in to comment.