From 22c57837a7d4642746c605cd685d95139db62a0a Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 25 Sep 2019 07:39:09 -0700 Subject: bin/update-all: handle non-cgroup kernel Signed-off-by: Robin H. Johnson --- bin/update-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-all.sh b/bin/update-all.sh index 2c1781f..9249478 100755 --- a/bin/update-all.sh +++ b/bin/update-all.sh @@ -8,7 +8,7 @@ # from Portage are NOT available unless --sync IS used. # Stuff that we have to do inside Docker: -if grep -qa docker /proc/1/cgroups && [[ ${1} != "production" ]]; then +if [[ -e /proc/1/cgroups ]] && grep -qa docker /proc/1/cgroups && [[ ${1} != "production" ]]; then emerge --sync fi -- cgit v1.2.3-65-gdbad