From 7c9d001a2075d5d91c095301955a9a5cc7afa2ec Mon Sep 17 00:00:00 2001 From: oddlama Date: Mon, 31 May 2021 17:25:08 +0200 Subject: [PATCH] Fix reverse condition in check_encryption_key --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 62ced89..fb56f2b 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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