Close GPG key file handle after usage
This commit is contained in:
2
main.go
2
main.go
@@ -170,6 +170,8 @@ func main() {
|
|||||||
log.Fatalf("Error: %v", err)
|
log.Fatalf("Error: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gpgkey_file.Close()
|
||||||
|
|
||||||
log.Printf("Encrypting files to %v", strings.ToUpper(gpgkey.GetFingerprint()))
|
log.Printf("Encrypting files to %v", strings.ToUpper(gpgkey.GetFingerprint()))
|
||||||
|
|
||||||
if !gpgkey.CanEncrypt(time.Now().Unix()) {
|
if !gpgkey.CanEncrypt(time.Now().Unix()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user