From b69d5427c4f0eb8a1ebed4c729fdc3df05807ebd Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 15 Oct 2020 16:40:05 +0530 Subject: Fix unlinking files after running gpg --- leo.pl | 3 +-- 1 file changed, 1 insertion(+), 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 { -- cgit 1.4.1-2-gfad0