Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98889
: "${ci_distro:=ubuntu}"
: "${ci_docker:=}"
: "${ci_host:=native}"
-: "${ci_in_docker:=}"
+: "${ci_in_docker:=no}"
: "${ci_suite:=trusty}"
if [ $(id -u) = 0 ]; then
;;
esac
- if [ -n "$ci_in_docker" ]; then
+ if [ "$ci_in_docker" = yes ]; then
# Add the user that we will use to do the build inside the
# Docker container, and let them use sudo
adduser --disabled-password user </dev/null