diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-15 17:37:53 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-15 17:37:53 +0200 | 
| commit | 25a2605405d8ec7645d0664914c3b7290745afec (patch) | |
| tree | 8afe0d8828a3909bfe2774385c8bebc039cf6d6e /bin/extra/wipe | |
| parent | c9a06111585c189607ff1e81b77bb32f0a25a992 (diff) | |
synced
Diffstat (limited to 'bin/extra/wipe')
| -rwxr-xr-x | bin/extra/wipe | 4 | 
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 "{}" &&  | 
