Skip to content

Commit 9a04c39

Browse files
committed
Remove non-POSIX loop construct
1 parent b05e058 commit 9a04c39

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ci/run-docker.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ run() {
99
echo "Building docker container for target ${1}"
1010

1111
# FIXME: Hacky workaround. Docker build seems to work better if we pull the base images first
12-
ubuntu_images=( 16.04 17.10 18.04 )
13-
for i in "${ubuntu_images[@]}"
14-
do
15-
docker pull ubuntu:$i
16-
done
12+
# Not using arrays/loops because it's not POSIX sh compatible
13+
docker pull ubuntu:16.04
14+
docker pull ubuntu:17.10
15+
docker pull ubuntu:18.04
1716

1817
# use -f so we can use ci/ as build context
1918
docker build -t libc -f "ci/docker/${1}/Dockerfile" ci/

0 commit comments

Comments
 (0)