From 588394bf28c3c59e46cf3fe2bdd98c514cbdae7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=BBebrak?= <mzebrak@syncad.com> Date: Thu, 4 Jul 2024 16:10:32 +0200 Subject: [PATCH] Fix typo in check_is_private_key_nor_password_is_not_logged --- .../check_is_private_key_nor_password_is_not_logged.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/check_is_private_key_nor_password_is_not_logged.bash b/scripts/check_is_private_key_nor_password_is_not_logged.bash index 359a724bdf..67e3dd7941 100755 --- a/scripts/check_is_private_key_nor_password_is_not_logged.bash +++ b/scripts/check_is_private_key_nor_password_is_not_logged.bash @@ -9,9 +9,9 @@ function find_password_private_keys() { '(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)' } -amount_of_occurences=$(find_password_private_keys --count) -if [[ $amount_of_occurences -ne 0 ]]; then - echo "Error! Found $amount_of_occurences occurrences of private key or password" +amount_of_occurrences=$(find_password_private_keys --count) +if [[ $amount_of_occurrences -ne 0 ]]; then + echo "Error! Found $amount_of_occurrences occurrences of private key or password" find_password_private_keys 2>&1 fi; -exit "$amount_of_occurences" +exit "$amount_of_occurrences" -- GitLab