From ad3fbb8d31894bfbff30e143dc18e85eed5afd20 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 Jun 2011 15:19:03 -0400 Subject: Add AVOID_SPECIAL_FILE_WARNING to config file, and set it in cron job to avoid daily noise. (gulikoza) --- pre-commit.d/20warn-problem-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pre-commit.d/20warn-problem-files') 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 -- cgit v1.2.3