#!/bin/bash
cd "$(dirname "$(readlink -e "$0")")"
ids=$(
for pkg in */PKGBUILD; do
cd "${pkg%/PKGBUILD}"
docker run -d -v .:/build arch-build:latest
docker run -d -v .:/build artix-build:latest
cd ..
done \
| tee /dev/stderr
)
while docker ps --no-trunc | grep -wF "${ids}"; do
sleep 10
date
done