Output a message when a hook fails due to file modification

This commit is contained in:
Joe Bateson 2015-11-25 11:14:01 -08:00
parent c6200329a2
commit 91a547ed61
4 changed files with 36 additions and 7 deletions

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
for f in $@; do
# Non UTF-8 bytes
echo -e '\x01\x97' > "$f"
done

View file

@ -2,9 +2,14 @@
name: Bash hook
entry: bin/hook.sh
language: script
files: ''
files: 'foo.py'
- id: bash_hook2
name: Bash hook
entry: bin/hook2.sh
language: script
files: ''
- id: bash_hook3
name: Bash hook
entry: bin/hook3.sh
language: script
files: 'bar.py'