mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-10 20:00:27 +03:00
11 lines
197 B
Bash
Executable File
11 lines
197 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo "Running pre-commit hook from "`pwd`
|
|
./scripts/test.sh
|
|
|
|
# $? stores exit value of the last command
|
|
if [ $? -ne 0 ]; then
|
|
echo "Tests must pass before commit!"
|
|
exit 1
|
|
fi
|