mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
da3229d0cc
Since it contains bashisms. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5091>
12 lines
228 B
Bash
Executable file
12 lines
228 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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"
|