summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-10 21:02:28 +0000
committerSam James <sam@gentoo.org>2021-06-10 21:02:39 +0000
commitca38032064b6bbcf36604e5c0421eac7533a0243 (patch)
tree9ba600bc816e74ddaec8d831976f837343efb9eb
parentprofiles: last-rite mail-client/etpan-ng (diff)
downloadgentoo-ca38032064b6bbcf36604e5c0421eac7533a0243.tar.gz
gentoo-ca38032064b6bbcf36604e5c0421eac7533a0243.tar.bz2
gentoo-ca38032064b6bbcf36604e5c0421eac7533a0243.zip
sys-fs/static-dev: fix ROOT check for EAPI 7
Closes: https://bugs.gentoo.org/795285 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-fs/static-dev/static-dev-0.1-r2.ebuild (renamed from sys-fs/static-dev/static-dev-0.1-r1.ebuild)2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-fs/static-dev/static-dev-0.1-r1.ebuild b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
index 42c60e497de..ca46b76ab1e 100644
--- a/sys-fs/static-dev/static-dev-0.1-r1.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
@@ -30,7 +30,7 @@ pkg_pretend() {
fi
# We also want to not clobber newer devtmpfs setups.
- if [[ ${ROOT} == "/" ]] && \
+ if [[ -z ${ROOT} ]] && \
! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
abort
fi