aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-30 13:02:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-30 13:02:04 -0300
commit2a8faa9928b1cbd937bffc1a9918edf07ee39245 (patch)
tree281cdd18dfd6429de3b92942560e9e7b34955128
parentae3c0b175a293a689d876ed0b5d6b29af4a4012c (diff)
downloadkeyringer-2a8faa9928b1cbd937bffc1a9918edf07ee39245.tar.gz
keyringer-2a8faa9928b1cbd937bffc1a9918edf07ee39245.tar.bz2
Rename _F to rmtest at keyringer_shred
-rwxr-xr-xlib/keyringer/functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 9f67fc9..eb63f3e 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -193,14 +193,14 @@ function keyringer_shred {
fi
# Create our test target
- _F="$(mktemp)"
+ local rmtest="$(mktemp)"
# Get shred implementation
if which wipe &> /dev/null; then
tool="wipe"
elif which shred &> /dev/null; then
tool="shred"
- elif rm -P "${_F}" &> /dev/null; then
+ elif rm -P "${rmtest}" &> /dev/null; then
tool="rm -P"
else
# Worst implementation
@@ -209,7 +209,7 @@ function keyringer_shred {
fi
# Cleanup in case "rm -P" is never called or -P flag is unsupported
- rm -f "${_F}"
+ rm -f "${rmtest}"
echo "$message $path using $tool..."