summaryrefslogtreecommitdiffstats
path: root/testing/resources/arbitrary_bytes_repo/hook.sh
blob: 9df0c5a07ac066cac0a761260a3fd1bec69bf112 (plain)
1
2
3
4
5
6
7
#!/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