1
0
Fork 0
pre-commit/testing/resources/arbitrary_bytes_repo/hook.sh
Daniel Baumann c0d06915b7
Adding upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 21:10:22 +01:00

7 lines
250 B
Bash
Executable file

#!/usr/bin/env bash
# Intentionally write mixed encoding to the output. This should not crash
# pre-commit and should write bytes to the output.
# '☃'.encode() + '²'.encode('latin1')
echo -e '\xe2\x98\x83\xb2'
# exit 1 to trigger printing
exit 1