bugfix, possible crash

This commit is contained in:
Marc Wäckerlin
2016-09-28 15:02:21 +00:00
parent c8dbfd6434
commit 032c5e750d
13 changed files with 597 additions and 35 deletions

View File

@@ -16,7 +16,7 @@ if test -n "${SCHROOTNAME}"; then
SUDO="schroot -c "${SCHROOTNAME}" -u root -d / --"
else
DO=""
if grep -q '/docker/' /proc/1/cgroup; then
if grep -q '/docker' /proc/1/cgroup; then
SUDO=""
else
SUDO="sudo"