mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-30 22:14:37 +00:00
Actor: Fix quoting in DOC_CONVERT_CMD
variable
Signed-off-by: Václav Vančura <commit@vancura.dev>
This commit is contained in:
parent
39bcc52c1b
commit
493d405cab
@ -68,7 +68,7 @@ fi
|
||||
|
||||
# --- Build Docling command ---
|
||||
|
||||
DOC_CONVERT_CMD="docling --verbose \"${DOCUMENT_URL}\" --to \"${OUTPUT_FORMAT}\""
|
||||
DOC_CONVERT_CMD="docling --verbose '${DOCUMENT_URL}' --to '${OUTPUT_FORMAT}'"
|
||||
|
||||
# If OCR is enabled, add the OCR flag to the command.
|
||||
if [ "$(echo "${INPUT}" | jq -r '.ocr')" = "true" ]; then
|
||||
@ -92,7 +92,7 @@ touch "$TIMESTAMP_FILE" || {
|
||||
}
|
||||
|
||||
echo "Starting document processing with memory monitoring..."
|
||||
/usr/bin/time -v bash -c "$DOC_CONVERT_CMD" 2>&1 | tee -a "$LOG_FILE"
|
||||
/usr/bin/time -v bash -c "${DOC_CONVERT_CMD}" 2>&1 | tee -a "$LOG_FILE"
|
||||
DOCLING_EXIT_CODE=${PIPESTATUS[0]}
|
||||
|
||||
# Check if the command failed and handle the error.
|
||||
|
Loading…
Reference in New Issue
Block a user