summaryrefslogtreecommitdiff
path: root/pre-commit.d/20warn-problem-files
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-06-19 15:19:03 -0400
committerJoey Hess <joey@kitenet.net>2011-06-19 15:19:03 -0400
commitad3fbb8d31894bfbff30e143dc18e85eed5afd20 (patch)
tree1b339cb4baf6deeb600f9cef23c60bd2a9f654ee /pre-commit.d/20warn-problem-files
parentc5c7cc002e05108ae3434a328cd0f2507908787a (diff)
Add AVOID_SPECIAL_FILE_WARNING to config file, and set it in cron job to avoid daily noise. (gulikoza)
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