Close GPG key file handle after usage

This commit is contained in:
clerie 2024-11-24 17:46:38 +01:00
parent 9f39a49c4c
commit 9ec8374721

View File

@ -170,6 +170,8 @@ func main() {
log.Fatalf("Error: %v", err)
}
gpgkey_file.Close()
log.Printf("Encrypting files to %v", strings.ToUpper(gpgkey.GetFingerprint()))
if !gpgkey.CanEncrypt(time.Now().Unix()) {