mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-04 20:37:55 +00:00
fixes a nasty bug on forge when run without /home/jrml/.gnupg
thanks to Giuliana Dieni for debbugging
This commit is contained in:
parent
0b846a79e7
commit
cf66907fa2
5
tomb
5
tomb
@ -1019,6 +1019,11 @@ forge_key() {
|
||||
_warning "no key name specified for creation"
|
||||
return 1 }
|
||||
|
||||
# make sure that gnupg doesn't quits with an error before first run
|
||||
{ test -r $HOME/.gnupg/pubring.gpg } && {
|
||||
mkdir $HOME/.gnupg
|
||||
touch $HOME/.gnupg/pubring.gpg }
|
||||
|
||||
{ test -r "$destkey" } && {
|
||||
_warning "Forging this key would overwrite an existing file. Operation aborted."
|
||||
die "`ls -lh $destkey`" }
|
||||
|
Loading…
Reference in New Issue
Block a user