23 lines
363 B
Bash
Executable file
23 lines
363 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
# Make sure we have .NET installed.
|
|
if ! which dotnet >& /dev/null
|
|
then
|
|
echo "Cannot find 'dotnet' in the path"
|
|
exit 1
|
|
fi
|
|
|
|
# Make sure we have lefthook.and it is installed.
|
|
if ! which lefthook >& /dev/null
|
|
then
|
|
echo "Cannot find 'lefthook' in the path"
|
|
exit 1
|
|
fi
|
|
|
|
lefthook install
|
|
|
|
# Everything is good.
|
|
exit 0
|