From ba60924bbc3dd7eca7b8663ef598153042b60d0d Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 03:00:29 +0200 Subject: [PATCH] Fix unset variable access when checking chroot --- scripts/functions.sh | 2 +- scripts/utils.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index f59611a..b60a721 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -822,7 +822,7 @@ function gentoo_chroot() { gentoo_chroot "$1" /bin/bash --init-file <(echo 'init_bash') fi - [[ $EXECUTED_IN_CHROOT != "true" ]] \ + [[ -v EXECUTED_IN_CHROOT ]] \ || die "Already in chroot" local chroot_dir="$1" diff --git a/scripts/utils.sh b/scripts/utils.sh index 5c9e3f2..b88de82 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -6,7 +6,7 @@ function elog() { } function einfo() { - echo "[*] $*" + echo "[[1+] $*" } function ewarn() {