Debian Codegraph @

init.d/20restore-etckeeper

raw symbols SCIP
1 #!/bin/sh
2 set -e
3
4 # Used by .etckeeper to run a command if the file it acts on
5 # (the last parameter) exists.
6 maybe () {
7 command="$1"
8 shift 1
9
10 if eval [ -e "\"\$$#\"" ]; then
11 "$command" "$@"
12 fi
13 }
14
15 # Yes, this runs code from the repository. As documented, etckeeper-init
16 # should only be run on repositories you trust.
17 if [ -e .etckeeper ]; then
18 . ./.etckeeper
19 else
20 touch .etckeeper
21 chmod 600 .etckeeper
22 fi