Fix unset variable access when checking chroot
This commit is contained in:
parent
4fac67ebdb
commit
ba60924bbc
|
@ -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
|
||||||
|
|
||||||
[[ $EXECUTED_IN_CHROOT != "true" ]] \
|
[[ -v EXECUTED_IN_CHROOT ]] \
|
||||||
|| die "Already in chroot"
|
|| die "Already in chroot"
|
||||||
|
|
||||||
local chroot_dir="$1"
|
local chroot_dir="$1"
|
||||||
|
|
|
@ -6,7 +6,7 @@ function elog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function einfo() {
|
function einfo() {
|
||||||
echo "[[1;33m*[m] [1;33m$*[m"
|
echo "[[1+[m] [1;33m$*[m"
|
||||||
}
|
}
|
||||||
|
|
||||||
function ewarn() {
|
function ewarn() {
|
||||||
|
|
Loading…
Reference in New Issue