]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Rename _F to rmtest at keyringer_shred
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 30 May 2018 16:02:04 +0000 (13:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 30 May 2018 16:02:04 +0000 (13:02 -0300)
lib/keyringer/functions

index 9f67fc9220ba21dc7e484ca9764471f252318154..eb63f3eff01100123eba0433de139138a65df871 100755 (executable)
@@ -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..."