aports/main/etckeeper/apk-commit_hook
2019-12-16 15:33:18 +00:00

22 lines
317 B
Bash

#!/bin/sh
[ -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)
etckeeper pre-install
;;
post-commit)
etckeeper post-install
;;
*)
echo "$0: Un-handled action: $1"
;;
esac