From 45636bb82d13b87e61e4e46cfb2501262bf62f53 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 03:02:17 +0200 Subject: [PATCH] Allow "false" value for chroot check to mean not in chroot --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index b60a721..eeee910 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 - [[ -v EXECUTED_IN_CHROOT ]] \ + [[ ${EXECUTED_IN_CHROOT-false} == "false" ]] \ || die "Already in chroot" local chroot_dir="$1"