diff options
Diffstat (limited to 'uninit.d/01prompt')
-rwxr-xr-x | uninit.d/01prompt | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/uninit.d/01prompt b/uninit.d/01prompt index 23e9637..07f2e41 100755 --- a/uninit.d/01prompt +++ b/uninit.d/01prompt @@ -1,18 +1,20 @@ #!/bin/sh set -e -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 +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 |