list_gnupg_ciphers: Remove check on gpg

This function is called after _ensure_dependencies(), which would bail out if gpg is not found
This commit is contained in:
Narrat 2018-01-07 21:56:19 +01:00
parent 5e3b0dec84
commit 08ca0a8eef

3
tomb
View File

@ -1359,9 +1359,6 @@ gen_key() {
# prints an array of ciphers available in gnupg (to encrypt keys) # prints an array of ciphers available in gnupg (to encrypt keys)
list_gnupg_ciphers() { list_gnupg_ciphers() {
# prints an error if GnuPG is not found
which gpg &>/dev/null || _failure "gpg (GnuPG) is not found, Tomb cannot function without it."
# On gpg1 and gpg2 line 10 always point to available ciphers. # On gpg1 and gpg2 line 10 always point to available ciphers.
# Print those until the next section is found # Print those until the next section is found
ciphers=(`gpg --version | awk ' ciphers=(`gpg --version | awk '