ci-install.sh: make ci_in_docker follow the yes/no convention too

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98889
This commit is contained in:
Simon McVittie 2016-11-29 12:47:01 +00:00
parent 367526aff6
commit e7c048f36a

View file

@ -29,7 +29,7 @@ NULL=
: "${ci_distro:=ubuntu}"
: "${ci_docker:=}"
: "${ci_host:=native}"
: "${ci_in_docker:=}"
: "${ci_in_docker:=no}"
: "${ci_suite:=trusty}"
if [ $(id -u) = 0 ]; then
@ -111,7 +111,7 @@ case "$ci_distro" in
;;
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