ZealOS/meta/install_hooks.sh
xSlendiX 06a79a1a06
Add pre-commit hook to remove cursors.
This patch adds a pre-commit hook specifically for *NIX systems to
remove the cursor byte from all files under `src/`.

The reason why I chose python is because it is assumed that most *NIX
systems already come with it pre-installed.

Signed-off-by: xSlendiX <slendi@socopon.com>
2023-02-26 03:33:48 +02:00

8 lines
153 B
Bash
Executable file

#!/bin/sh
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "${script_path}/.." || exit 1
mkdir -p .git/hooks
cp meta/pre-commit .git/hooks/.