Fix unset variable access when checking chroot

This commit is contained in:
oddlama 2021-05-30 03:00:29 +02:00
parent 4fac67ebdb
commit ba60924bbc
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
2 changed files with 2 additions and 2 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
[[ $EXECUTED_IN_CHROOT != "true" ]] \ [[ -v EXECUTED_IN_CHROOT ]] \
|| die "Already in chroot" || die "Already in chroot"
local chroot_dir="$1" local chroot_dir="$1"

View File

@ -6,7 +6,7 @@ function elog() {
} }
function einfo() { function einfo() {
echo "[*] $*" echo "[[1+] $*"
} }
function ewarn() { function ewarn() {