From af8a58b13f0b403cb3a553416bcc18d7a332025f Mon Sep 17 00:00:00 2001 From: TheK4n Date: Thu, 21 Apr 2022 16:11:06 +0300 Subject: [PATCH] func destroy --- sub/bash/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/bash/functions b/sub/bash/functions index eaa54a5..7864701 100644 --- a/sub/bash/functions +++ b/sub/bash/functions @@ -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" }