Merge "Make "adb bugreport"'s .zip check case-insensitive."
This commit is contained in:
commit
da6fe65000
1 changed files with 1 additions and 2 deletions
|
|
@ -240,8 +240,7 @@ int Bugreport::DoIt(TransportType transport_type, const char* serial, int argc,
|
||||||
// Uses a default value until device provides the proper name
|
// Uses a default value until device provides the proper name
|
||||||
dest_file = "bugreport.zip";
|
dest_file = "bugreport.zip";
|
||||||
} else {
|
} else {
|
||||||
if (!android::base::EndsWith(dest_file, ".zip")) {
|
if (!android::base::EndsWithIgnoreCase(dest_file, ".zip")) {
|
||||||
// TODO: use a case-insensitive comparison (like EndsWithIgnoreCase
|
|
||||||
dest_file += ".zip";
|
dest_file += ".zip";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue