aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-10-25 16:22:54 +0200
committerMichał Górny <mgorny@gentoo.org>2018-10-25 17:16:44 +0200
commit53c4e1ac66f9ccfcb68b800cc1489a5da9923bb8 (patch)
tree956ff43b2049002d8d4793b8bc15fc643edac2e5 /bin/misc-functions.sh
parentetc-update: handle whitespace in ID_LIKE (diff)
downloadportage-53c4e1ac66f9ccfcb68b800cc1489a5da9923bb8.tar.gz
portage-53c4e1ac66f9ccfcb68b800cc1489a5da9923bb8.tar.bz2
portage-53c4e1ac66f9ccfcb68b800cc1489a5da9923bb8.zip
*-qa-check.d: fix entering EROOT in EAPI 7
Fix running QA checks from EROOT in EAPI 7 if the value is empty. Previously, this wrongly caused 'cd' to be run with empty value implying home directory. Bug: https://bugs.gentoo.org/668638 Signed-off-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 8c88f8f35..ff3d2a1ff 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -174,7 +174,7 @@ postinst_qa_check() {
local EPREFIX= EROOT=${ROOT}
fi
- cd "${EROOT}" || die "cd failed"
+ cd "${EROOT:-/}" || die "cd failed"
# Collect the paths for QA checks, highest prio first.
paths=(