aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rwxr-xr-xlib/keyringer/functions4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 629d2b5..b14e95a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-11-14 - Silvio Rhatto <rhatto@riseup.net>
+ Shred of temporary files (closes #27)
+
Encrypt/open improvements (closes #9)
Initialization now asks user to edit the default preferences file
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 4d97f34..d02b1d8 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -152,6 +152,8 @@ function keyringer_shred {
if [ -z "$path" ]; then
return
+ elif [ ! -e "$path" ]; then
+ return
fi
# Get shred implementation
@@ -170,7 +172,7 @@ function keyringer_shred {
if [ -d "$path" ]; then
find $path -exec $tool -f {} \;
rmdir $path
- elif [ -e "$path" ]; then
+ else
$tool -f "$path"
fi
}