summaryrefslogtreecommitdiff
path: root/bin/extra/wipe
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/wipe')
-rwxr-xr-xbin/extra/wipe4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/extra/wipe b/bin/extra/wipe
index ec2abe9..6006b8e 100755
--- a/bin/extra/wipe
+++ b/bin/extra/wipe
@@ -2,8 +2,8 @@
[ 0 -eq "$#" ] && >&2 echo 'usage: wipe <file>' && exit 1
[ ! -f "$1" ] && [ ! -d "$1" ] && >&2 echo "'$1' not found." && exit 1
-confirm "sure?" || exit 1
->&2 printf "\n"
+printf "sure? "
+[ "$(head -n 1)" != "y" ] && exit 1
find "$1" -type f -print0 |
xargs -0I{} shred -uz "{}" &&