aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-09-25 07:39:09 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2019-09-25 07:39:09 -0700
commit22c57837a7d4642746c605cd685d95139db62a0a (patch)
treeec0b899667a68ce071f8a1a8ef45d691273bf559
parentbin/update-all: handle non-docker dev environment (diff)
downloadpackages-5-22c57837a7d4642746c605cd685d95139db62a0a.tar.gz
packages-5-22c57837a7d4642746c605cd685d95139db62a0a.tar.bz2
packages-5-22c57837a7d4642746c605cd685d95139db62a0a.zip
bin/update-all: handle non-cgroup kernel
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xbin/update-all.sh2
1 files changed, 1 insertions, 1 deletions
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