aboutsummaryrefslogtreecommitdiffstats
path: root/community/etckeeper/apk-commit_hook
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-12-20 11:57:20 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-12-27 14:42:12 +0100
commit917041212d6841b0924e93e5b5abe6f8ac811b9d (patch)
treeb3a208c79731d16d2d20f4669f4e803267210e87 /community/etckeeper/apk-commit_hook
parent34ceaf65b946bfb564f0e83b9dcae045c3d5b1b1 (diff)
downloadaports-917041212d6841b0924e93e5b5abe6f8ac811b9d.tar.bz2
aports-917041212d6841b0924e93e5b5abe6f8ac811b9d.tar.xz
community/etckeeper: do not warn for hard links
Diffstat (limited to 'community/etckeeper/apk-commit_hook')
-rw-r--r--community/etckeeper/apk-commit_hook5
1 files changed, 5 insertions, 0 deletions
diff --git a/community/etckeeper/apk-commit_hook b/community/etckeeper/apk-commit_hook
index 6f0a4c043c..a662c81a81 100644
--- a/community/etckeeper/apk-commit_hook
+++ b/community/etckeeper/apk-commit_hook
@@ -2,6 +2,11 @@
[ -x /usr/bin/etckeeper ] || exit
+[ -x /usr/bin/git ] || exit
+[ -x /usr/bin/find ] || exit
+
+AVOID_SPECIAL_FILE_WARNING=1
+export AVOID_SPECIAL_FILE_WARNING
case "$1" in
pre-commit)