From 333a987daceee28bad5d529815d5356cf9e5850b Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Thu, 9 Oct 2025 20:37:39 -0500 Subject: [PATCH] Moving these hooks to AniNIX/Uniglot --- precommit-hooks/find-data-files | 9 --------- precommit-hooks/make-sure-hooks-synced | 4 ---- 2 files changed, 13 deletions(-) delete mode 100644 precommit-hooks/find-data-files delete mode 100644 precommit-hooks/make-sure-hooks-synced diff --git a/precommit-hooks/find-data-files b/precommit-hooks/find-data-files deleted file mode 100644 index 638ebec..0000000 --- a/precommit-hooks/find-data-files +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -result="$(find roles/*/{files,templates} -type f -exec file {} \; | grep -Ev ASCII\ text\||JSON|empty\|Unicode\ text | grep -v motd.txt.j2)" -if [ -n "$result" ]; then - echo "These files need to be evaluated -- generally, don't commit data files to Git." - echo "$result" - exit 1 -fi -exit 0 diff --git a/precommit-hooks/make-sure-hooks-synced b/precommit-hooks/make-sure-hooks-synced deleted file mode 100644 index f11f8fe..0000000 --- a/precommit-hooks/make-sure-hooks-synced +++ /dev/null @@ -1,4 +0,0 @@ -if [ `git ls-files -m | grep precommit-hooks/ | wc -l` != '0' ]; then - echo 'Hooks have changed and need to be added. Run `git add precommit-hooks`' - exit 1 -fi