mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
20 lines
492 B
Bash
20 lines
492 B
Bash
#!/bin/bash
|
|
|
|
gitroot=`git rev-parse --show-toplevel`
|
|
|
|
cd "$gitroot/BuildChecker"
|
|
|
|
if [ -f "git_helper.py" ]
|
|
then
|
|
if [[ `uname` == MINGW* || `uname` == CYGWIN* ]]; then
|
|
# Windows
|
|
# Can't update hooks from here because we are a hook,
|
|
# and the file is read only while it's used.
|
|
# Thanks Windows.
|
|
py -3 git_helper.py --quiet --nohooks
|
|
else
|
|
# Not Windows, so probably some other Unix thing.
|
|
python3 git_helper.py --quiet
|
|
fi
|
|
fi
|