func destroy
This commit is contained in:
parent
fbe1ac82f1
commit
af8a58b13f
@ -4,7 +4,7 @@ destroy() {
|
||||
test -n "$1" || return 1
|
||||
test -e "$1" || return 1
|
||||
|
||||
echo "Sure want to destroy file '$1' with size $(du -hs "$1" | awk '{printf $1}') [y/N] "
|
||||
echo -n "Sure want to destroy file '$1' with size $(du -hs "$1" | awk '{printf $1}') [y/N] "
|
||||
read -r response
|
||||
[[ $response == [yY] ]] && shred -zun 25 "$1"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user