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

Commit c5d6cfc0 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed header on runCommand().

BUG: 26379932
Fixes: 31755035
Test: manual
Change-Id: I3c1779afee8e0d601a2ed3a227999a87bb5236c7
parent 8d97c932
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -757,9 +757,9 @@ int runCommand(const char* title, const std::vector<std::string>& fullCommand,

    const char* args[size];

    printf("------");
    if (title) printf(" %s", title);
    printf(" (");
    if (title) {
        printf("------ %s (", title);
    }

    std::string commandString;
    int i = 0;
@@ -779,7 +779,10 @@ int runCommand(const char* title, const std::vector<std::string>& fullCommand,
    args[i] = nullptr;
    const char* path = args[0];
    const char* command = commandString.c_str();
    printf("%s)\n", command);

    if (title) {
        printf("%s) ------\n", command);
    }

    fflush(stdout);