Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7acce1b0 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

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

Bug: TODO
Test: manual
Change-Id: I0ece7d8dcb708e3755477f7df5ff03807fd227f2
parent 61131fc9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
        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";
        }
    }