Skip to content

Commit 4747aad

Browse files
committed
output
1 parent 1ad3781 commit 4747aad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

usr/bin/check-ref-commits-for-unicode

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ set -o pipefail
1111
# shellcheck source=../libexec/helper-scripts/log_run_die.sh
1212
source /usr/libexec/helper-scripts/log_run_die.sh
1313

14+
log_level=info
15+
1416
check_ref_commits_for_unicode() {
1517
local target_ref commit_list commit commit_diff unicode_report \
1618
unicode_show_exit_code found_malicious_unicode
@@ -61,14 +63,14 @@ check_ref_commits_for_unicode() {
6163
printf '%s\n' "${unicode_report:-'No stdout or stderr from unicode-show!'}"
6264
found_malicious_unicode='true'
6365
else
64-
log notice "No potentially malicious unicode detected in commit '${commit}'."
66+
log info "No unicode detected in commit '${commit}'."
6567
fi
6668
done
6769

6870
if [ "${found_malicious_unicode}" = 'true' ]; then
6971
die 1 'Potentially malicious unicode detected!'
7072
fi
71-
log notice 'No potentially malicious unicode detected.'
73+
log notice 'No unicode detected.'
7274
}
7375

7476
check_ref_commits_for_unicode "$@"

0 commit comments

Comments
 (0)