2023-07-23 09:33:19 +00:00
|
|
|
#!/bin/bash
|
2023-07-18 16:36:32 +00:00
|
|
|
|
|
|
|
PYTHON="python3"
|
|
|
|
if [[ $OS =~ Windows ]]; then
|
|
|
|
if type -p py &>/dev/null; then
|
|
|
|
PYTHON="py -3"
|
|
|
|
elif type -p python &>/dev/null; then
|
|
|
|
PYTHON="python"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
$PYTHON "`dirname $0`/pre-commit-python.hook"
|