Allow "false" value for chroot check to mean not in chroot

This commit is contained in:
oddlama 2021-05-30 03:02:17 +02:00
parent 9985bfa5f0
commit 45636bb82d
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ function gentoo_chroot() {
gentoo_chroot "$1" /bin/bash --init-file <(echo 'init_bash') gentoo_chroot "$1" /bin/bash --init-file <(echo 'init_bash')
fi fi
[[ -v EXECUTED_IN_CHROOT ]] \ [[ ${EXECUTED_IN_CHROOT-false} == "false" ]] \
|| die "Already in chroot" || die "Already in chroot"
local chroot_dir="$1" local chroot_dir="$1"