Skip to content

Commit

Permalink
Simplify text
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Sep 30, 2024
1 parent 450964e commit 8d1394d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion test/test_suite.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 8d1394d

Please sign in to comment.