]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - tools/git-setup.sh
presets: Disable by default for initrd presets
[thirdparty/systemd.git] / tools / git-setup.sh
... / ...
CommitLineData
1#!/bin/sh
2# SPDX-License-Identifier: LGPL-2.1-or-later
3set -eu
4
5cd "${MESON_SOURCE_ROOT:?}"
6
7ret=2
8
9if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then
10 cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit
11 chmod +x .git/hooks/pre-commit
12 echo 'Activated pre-commit hook'
13 ret=0
14fi
15
16exit $ret