diff --git a/src/args.c b/src/args.c index 1a04a8adb..529bb488b 100644 --- a/src/args.c +++ b/src/args.c @@ -555,10 +555,9 @@ void parse_args(int argc, char* argv[]) // Enable stdout printing cli_mode = true; const bool match = verify_FTL(true); - if(match) - printf("%s SHA256 checksum matches\n", cli_tick()); - else - printf("%s SHA256 checksum does not match\n", cli_cross()); + printf("%s Binary integrity check: %s\n", + match ? cli_tick() : cli_cross() , + match ? "OK" : "FAILED"); exit(match ? EXIT_SUCCESS : EXIT_FAILURE); } diff --git a/test/test_suite.bats b/test/test_suite.bats index f39c23a84..133e3905f 100644 --- a/test/test_suite.bats +++ b/test/test_suite.bats @@ -11,7 +11,7 @@ @test "Check FTL binary integrity" { run bash -c './pihole-FTL verify' printf "%s\n" "${lines[@]}" - [[ "${lines[0]}" == *"SHA256 checksum matches" ]] + [[ "${lines[0]}" == *"Binary integrity check: OK" ]] } @test "Running a second instance is detected and prevented" {