From 552f0830240401bcc35f27bcef5f899f10f7f81d Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Sat, 6 Jul 2019 00:27:40 +0100 Subject: [PATCH] Use `&&` instead of `;` in Docker pipeline * In case of error, `&&` does not continue execution --- build-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docker.sh b/build-docker.sh index f968545..65a10a0 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -73,7 +73,7 @@ if [ "${CONTAINER_EXISTS}" != "" ]; then --volumes-from="${CONTAINER_NAME}" --name "${CONTAINER_NAME}_cont" \ pi-gen \ bash -e -o pipefail -c "dpkg-reconfigure qemu-user-static && - cd /pi-gen; ./build.sh ${BUILD_OPTS} ; + cd /pi-gen; ./build.sh ${BUILD_OPTS} && rsync -av work/*/build.log deploy/" & wait "$!" else