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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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