summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-06-28 17:08:04 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-06-28 17:08:04 -0400
commitab6fd15d6184e3aab69f1bef0fb98c2d3d257408 (patch)
treedd303c59403f3d509fbdda38ea5aa37afd3dcc6e /build.sh
parentd2294841b2df66f4e684b5eed1cae955cea21cf8 (diff)
SL-18837: git-hooks no longer has requirements.txt?
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 06a73aa8ca..44c7d66640 100755
--- a/build.sh
+++ b/build.sh
@@ -321,9 +321,13 @@ begin_section "coding policy check"
# this far. Running coding policy checks on one platform *should* suffice...
if [[ "$arch" == "Darwin" ]]
then
- # install the git-hooks dependencies
- pip install -r "$(native_path "$git_hooks_checkout/requirements.txt")" || \
- fatal "pip install git-hooks failed"
+ git_hooks_reqs="$git_hooks_checkout/requirements.txt"
+ if [[ -r "$(shell_path "$git_hooks_reqs")" ]]
+ then
+ # install the git-hooks dependencies
+ pip install -r "$(native_path "$git_hooks_reqs")" || \
+ fatal "pip install git-hooks failed"
+ fi
# validate the branch we're about to build
python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \
fatal "coding policy check failed"