Clean up for automatically created gpg generation file

This commit is contained in:
RandyTheSilly committed 2022-07-11 22:19:31 -04:00
1 parent a673404fae
commit e2b8e31f50
1 file changed
+1
+1
View File
@@ -231,6 +231,7 @@ def tweak(): # runs configuration wizard
path.expanduser('~/.config/sshyp/gpg-gen') + "'", shell=True)
else:
run(f"{gpg} --batch --generate-key '{path.expanduser('~/.config/sshyp/gpg-gen')}'", shell=True)
remove(path.expanduser('~/.config/sshyp/gpg-gen'))
_gpg_id = run(f"{gpg} -k", shell=True, stdout=PIPE, text=True).stdout.split('\n')[-4].strip()
# lock file generation