mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20:32 +00:00
06a79a1a06
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>
8 lines
153 B
Bash
Executable file
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/.
|
|
|