Files
Paradise/tools/hooks/python.sh
Charlie Nolan 3179d70820 Hooks should be executable. (#25045)
Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com>
2024-04-12 18:41:37 +00:00

18 lines
573 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$*" = "-m precommit" ]; then
echo "Hooks are being updated..."
echo "Details: https://github.com/ParadiseSS13/Paradise/pull/18034 and 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/ParadiseSS13/Paradise/pull/18034 and https://github.com/tgstation/tgstation/pull/55658"
exit 1
fi