Commit c426776b by Joe Holden

silence error output in docker test

parent 0a11407c
......@@ -47,7 +47,7 @@
# URL: [https://gitlab.com/joewholden/distroscript]
# README: [https://gitlab.com/joewholden/distroscript/blob/master/README.md]
DISTROSCRIPT="2.0"
DISTROSCRIPT="2.1"
if [ -z ${DISTROFORMAT} ]; then
DISTROFORMAT="pipe"
......@@ -365,7 +365,7 @@ getcont() {
fi
fi
if [ "${CONT}" = "none" ]; then
if grep -qa docker /proc/1/cgroup; then
if grep -qa docker /proc/1/cgroup 2>/dev/null; then
CONT=docker
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment