blob: 07f2e41d2b9faeb76cd7b973bb9692110e359c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
if [ "$1" != "-f" ]; then
echo "** Warning: This will DESTROY all recorded history for $ETCKEEPER_DIR,"
echo "** including the $VCS repository and ignore file."
echo ""
printf "Are you sure you want to do this? [yN] "
read answer
case "$answer" in
[Yy]*)
echo "Proceeding.."
exit 0
;;
*)
echo "Aborting etckeeper uninit."
exit 1
;;
esac
fi
|