Commit e7c048f3 authored by Simon McVittie's avatar Simon McVittie

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

Signed-off-by: 's avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98889
parent 367526af
......@@ -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
......
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