Files
Bubberstation/tools/hooks/pre-commit.hook
Tad Hardesty 17348c3f99 Update precommit hooks to work in GitHub Desktop (#51404)
Turns out GitHub Desktop actually does bundle a sh.exe, just not a bash.

Also tries to look for the py launcher to help people who didn't check 
the "Add Python to PATH" option.
2020-06-03 10:17:38 -07:00

4 lines
120 B
Bash
Executable File

#!/bin/sh
# `sh` must be used here instead of `bash` to support GitHub Desktop.
exec tools/hooks/python.sh -m precommit