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

21 lines
359 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2022-04-02 21:42:32 +00:00
# Normalize our environment.
cd $(dirname $0)/..
2022-04-02 21:42:32 +00:00
# Make sure we have the needed executables installed.
for e in dotnet lefthook prettier nixfmt
do
if ! which $e >& /dev/null
then
echo "Cannot find '$e' in the path"
exit 1
fi
done
# Make sure we have lefthook is installed.
lefthook install
# Everything is good.
exit 0