From 83aa24bda6acc0fc1f63a0eae65479302223c4eb Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Thu, 11 Jan 2024 08:20:19 +0100
Subject: [PATCH] Fix for running multiple commands inside container

---
 publish_on_pages.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/publish_on_pages.sh b/publish_on_pages.sh
index bb2988d..f05dbe4 100644
--- a/publish_on_pages.sh
+++ b/publish_on_pages.sh
@@ -33,7 +33,7 @@ elif [ $6 == 'false' ]; then
 	mkdir -p "public/$4"
     ls public/
 	cp -r -f "$7_$4.docx" public/$4
-    docker run --rm -v $(pwd):/tmp -w /tmp "$DOCKER_IMAGE" pip install bs4 && python3 $1 "$7_$4" "$4/$7_$4.docx" "$5"
+    docker run --rm -v $(pwd):/tmp -w /tmp "$DOCKER_IMAGE" /bin/bash -c 'pip install bs4; python3 $1 "$7_$4" "$4/$7_$4.docx" "$5"'
 else
     echo 'Removing entry for ' $6
     rm -r -f public/$6
-- 
GitLab