projects/aports·blob master · refs

22 lines · 317 B

1#!/bin/sh
2
3
4[ -x /usr/bin/etckeeper ] || exit
5[ -x /usr/bin/git ] || exit
6[ -x /usr/bin/find ] || exit
7
8AVOID_SPECIAL_FILE_WARNING=1
9export AVOID_SPECIAL_FILE_WARNING
10
11case "$1" in
12 pre-commit)
13 etckeeper pre-install
14 ;;
15 post-commit)
16 etckeeper post-install
17 ;;
18
19 *)
20 echo "$0: Un-handled action: $1"
21 ;;
22esac