From 44fc4b635eff8f4e8e4781994de01e77e3876146 Mon Sep 17 00:00:00 2001 From: Eric Chen Date: Mon, 6 Jan 2025 15:04:30 -0500 Subject: [PATCH] update build script --- containthedocs-build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/containthedocs-build.sh b/containthedocs-build.sh index bc29e8f..d59b0a8 100755 --- a/containthedocs-build.sh +++ b/containthedocs-build.sh @@ -2,13 +2,12 @@ set -x -COMMAND="make -C docs html" - +COMMAND=(/bin/bash -c "sudo pip install -r requirements.txt -U ; make -C docs clean html") . ./containthedocs-image -exec sudo docker run --rm -it \ +exec docker run --rm -t \ -v "$PWD":"$PWD" --workdir "$PWD" \ ${DOCKER_RUN_ARGS} \ -e "LOCAL_USER_ID=$(id -u)" \ - ${DOC_IMG} ${COMMAND} + ${DOC_IMG} "${COMMAND[@]}"