Merge "Make "adb bugreport"'s .zip check case-insensitive."

am: da6fe65000

Change-Id: I34d95b38bec230729b3707c698b347c9a5908831
This commit is contained in:
Elliott Hughes 2016-10-26 15:39:50 +00:00 committed by android-build-merger
commit 02ee1725ae
1 changed files with 1 additions and 2 deletions

View File

@ -237,8 +237,7 @@ int Bugreport::DoIt(TransportType transport_type, const char* serial, int argc,
// Uses a default value until device provides the proper name
dest_file = "bugreport.zip";
} else {
if (!android::base::EndsWith(dest_file, ".zip")) {
// TODO: use a case-insensitive comparison (like EndsWithIgnoreCase
if (!android::base::EndsWithIgnoreCase(dest_file, ".zip")) {
dest_file += ".zip";
}
}