mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
Manually select auto-generated GPG key due to inconsistent GPG output, use tempfile for gpg-gen
This commit is contained in:
+6
-5
@@ -9,13 +9,14 @@ func TempInitCli() {
|
||||
// gpgID
|
||||
var gpgID string
|
||||
if inputBinary("Auto-generate GPG key?") {
|
||||
gpgID = offline.GpgKeyGen()
|
||||
} else {
|
||||
uidSlice := offline.GpgUIDListGen()
|
||||
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
||||
gpgID = uidSlice[gpgIDInt-1]
|
||||
offline.GpgKeyGen()
|
||||
}
|
||||
|
||||
// select GPG key
|
||||
uidSlice := offline.GpgUIDListGen()
|
||||
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
|
||||
gpgID = uidSlice[gpgIDInt-1]
|
||||
|
||||
// textEditor
|
||||
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"" + offline.FallbackEditor + "\"):")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user