Skip to content
Snippets Groups Projects
Commit 83aa24bd authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for running multiple commands inside container

parent daee2956
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ elif [ $6 == 'false' ]; then ...@@ -33,7 +33,7 @@ elif [ $6 == 'false' ]; then
mkdir -p "public/$4" mkdir -p "public/$4"
ls public/ ls public/
cp -r -f "$7_$4.docx" public/$4 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 else
echo 'Removing entry for ' $6 echo 'Removing entry for ' $6
rm -r -f public/$6 rm -r -f public/$6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment