Files
tbd-station-14/BuildChecker/hooks/post-checkout
opl- b9254d9ebf Replace all usages of /bin/bash shebang with /usr/bin/env (#40756)
Replace all usages of /bin/bash with /usr/bin/env

/usr/bin/env is nearly guaranteed to always exist at that location, which can't be said about /bin/bash and /bin/sh.

Co-authored-by: opl <4833621+opl@users.noreply.github.com>
2025-10-12 19:49:41 +00:00

14 lines
298 B
Bash
Executable File

#!/usr/bin/env bash
gitroot=$(git rev-parse --show-toplevel)
cd "$gitroot/BuildChecker" || exit
if [[ $(uname) == MINGW* || $(uname) == CYGWIN* ]]; then
# Windows
py -3 git_helper.py --quiet
else
# Not Windows, so probably some other Unix thing.
python3 git_helper.py --quiet
fi