Fix reverse condition in check_encryption_key

This commit is contained in:
oddlama 2021-05-31 17:25:08 +02:00
parent 0f0463ac15
commit 7c9d001a20
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function prepare_installation_environment() {
}
function check_encryption_key() {
if [[ -n "${GENTOO_INSTALL_ENCRYPTION_KEY+set}" ]]; then
if [[ -z "${GENTOO_INSTALL_ENCRYPTION_KEY+set}" ]]; then
elog "You have enabled encryption, but haven't specified a key in the environment variable GENTOO_INSTALL_ENCRYPTION_KEY."
if ask "Do you want to enter an encryption key now?"; then
local encryption_key_1