aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/simplaret b/src/simplaret
index 568ae91..a048ed1 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -429,7 +429,7 @@ function simplaret_purge {
function simplaret_search_and_delete {
- local file candidate
+ local file candidate place basename
for file in `find $2/ -name $1*tgz 2> /dev/null`; do
candidate="`basename $file`"
@@ -449,7 +449,11 @@ function simplaret_search_and_delete {
fi
return 1
else
- rm $file
+ place="`dirname $file`"
+ basename="`basename $file tgz`"
+ rm -f $file
+ rm -f $place/$candidate.slack-required
+ rm -f $file.asc $place/$basename.meta $place/$basename.txt
break
fi
fi