summaryrefslogtreecommitdiff
path: root/pre-commit.d/20warn-problem-files
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.d/20warn-problem-files')
-rwxr-xr-xpre-commit.d/20warn-problem-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-commit.d/20warn-problem-files b/pre-commit.d/20warn-problem-files
index d600ff6..f7c7580 100755
--- a/pre-commit.d/20warn-problem-files
+++ b/pre-commit.d/20warn-problem-files
@@ -18,11 +18,11 @@ else
special=""
fi
-if [ -n "$special" ]; then
+if [ -n "$special" ] && [ -z "$AVOID_SPECIAL_FILE_WARNING" ]; then
echo "etckeeper warning: special files could cause problems with $VCS:" >&2
echo "$special" >&2
fi
-if [ -n "$hardlinks" ]; then
+if [ -n "$hardlinks" ] && [ -z "$AVOID_SPECIAL_FILE_WARNING" ]; then
echo "etckeeper warning: hardlinked files could cause problems with $VCS:" >&2
echo "$hardlinks" >&2
fi