xref: /aosp_15_r20/external/flashrom/util/git-hooks/wrapper.sh (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1#!/bin/sh
2
3if [ -x $0.local ]; then
4	$0.local "$@" || exit $?
5fi
6
7hook=$(git rev-parse --show-toplevel)"/util/git-hooks/"$(basename $0)
8if [ -x $hook ]; then
9	$hook "$@" || exit $?
10fi
11