This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-toolbuilder-cil/scripts/setup.sh
2022-04-02 19:15:30 -05:00

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