xref: /aosp_15_r20/external/drm_hwcomposer/hooks/check-hooks-installed (revision 0a9764fe0a15e71ebbeb85e87e10990c23aab47f)
1*0a9764feSAndroid Build Coastguard Worker#!/bin/bash
2*0a9764feSAndroid Build Coastguard Worker
3*0a9764feSAndroid Build Coastguard Worker# Gerrit hook that runs on repo upload. Checks to ensure that the pre-upload hook
4*0a9764feSAndroid Build Coastguard Worker# has been installed.
5*0a9764feSAndroid Build Coastguard Worker
6*0a9764feSAndroid Build Coastguard Workercmd=$(git config hookcmd.check-non-public-commits.command)
7*0a9764feSAndroid Build Coastguard Workerif [ -z "$cmd" ]; then
8*0a9764feSAndroid Build Coastguard Worker  echo "Please install hooks by running: hooks/install-hooks.sh"
9*0a9764feSAndroid Build Coastguard Worker  exit 1
10*0a9764feSAndroid Build Coastguard Workerfi