about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-10-15 16:40:05 +0530
committerAndinus <andinus@nand.sh>2020-10-15 16:40:05 +0530
commitb69d5427c4f0eb8a1ebed4c729fdc3df05807ebd (patch)
tree039143c15a8b1efffa306df655dabb47793c57d6
parent01931c241cbe32deb4b7ad95935dcdd7a1c9cad6 (diff)
downloadleo-b69d5427c4f0eb8a1ebed4c729fdc3df05807ebd.tar.gz
Fix unlinking files after running gpg
-rwxr-xr-xleo.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/leo.pl b/leo.pl
index 8f82d51..920a690 100755
--- a/leo.pl
+++ b/leo.pl
@@ -160,8 +160,7 @@ sub encrypt_sign {
     print "\n";
 
     unlink $file and say "$file deleted."
-        or warn "[WARN] Could not delete $file: $!\n"
-        if $options{delete};
+        or warn "[WARN] Could not delete $file: $!\n";
 }
 
 sub signify {