mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-02 11:58:28 +00:00
really fail to not overwrite keys when forging
This commit is contained in:
parent
fb686db8eb
commit
e6075d08ce
4
tomb
4
tomb
@ -1370,8 +1370,8 @@ forge_key() {
|
|||||||
|
|
||||||
# Do not overwrite any files accidentally
|
# Do not overwrite any files accidentally
|
||||||
[[ -r "$destkey" ]] && {
|
[[ -r "$destkey" ]] && {
|
||||||
_warning "Forging this key would overwrite an existing file. Operation aborted."
|
ls -lh $destkey
|
||||||
ls -lh $destkey }
|
_failure "Forging this key would overwrite an existing file. Operation aborted." }
|
||||||
|
|
||||||
# Update algorithm if it was passed on the command line with -o
|
# Update algorithm if it was passed on the command line with -o
|
||||||
{ option_is_set -o } && { algopt="$(option_value -o)" }
|
{ option_is_set -o } && { algopt="$(option_value -o)" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user