Allow "false" value for chroot check to mean not in chroot
This commit is contained in:
parent
9985bfa5f0
commit
45636bb82d
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue