From 8d1394d00eb78ba294cadd88889166df7043258f Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 29 Sep 2024 10:43:15 +0200 Subject: [PATCH] Simplify text Signed-off-by: DL6ER --- src/args.c | 7 +++---- test/test_suite.bats | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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" {