summaryrefslogtreecommitdiff
path: root/uninit.d/01prompt
blob: e642a82980a4eae88e900a0637e9ec49d2f3e53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

echo "** Warning: etckeeper uninit will DESTROY all recorded history for $ETCKEEPER_DIR"
echo "** This includes deleting the $VCS repository and ignore file."
echo ""
printf "Are you sure you want to do this? [yN] "
read answer
case "$answer" in 
	Y|y|yes|YES)
		echo "Proceeding.."
		exit 0
	;;
	*)
		echo "Aborting etckeeper uninit."
		exit 1
	;;
esac