mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
18 lines
461 B
Bash
Executable File
18 lines
461 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ "$*" = "-m precommit" ]; then
|
|
echo "Hooks are being updated..."
|
|
echo "Details: https://github.com/tgstation/tgstation/pull/55658"
|
|
if [ "$(uname -o)" = "Msys" ]; then
|
|
tools/hooks/Install.bat
|
|
else
|
|
tools/hooks/install.sh
|
|
fi
|
|
echo "---------------"
|
|
exec tools/hooks/pre-commit.hook
|
|
else
|
|
echo "tools/hooks/python.sh is replaced by tools/bootstrap/python"
|
|
echo "Details: https://github.com/tgstation/tgstation/pull/55658"
|
|
exit 1
|
|
fi
|