You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
370 B
Plaintext
21 lines
370 B
Plaintext
2 years ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ "$1" != "-f" ]; then
|
||
|
echo "** Warning: This will DESTROY all recorded history for $ETCKEEPER_DIR,"
|
||
|
echo "** including the $VCS repository."
|
||
|
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
|