mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
13 lines
339 B
Bash
Executable file
13 lines
339 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Do the conversion
|
|
OCR=$OCR OCR_LANGUAGE=$OCR_LANGUAGE /usr/bin/python3 /usr/local/bin/dangerzone.py pixels-to-pdf
|
|
RETURN_CODE=$?
|
|
if [ $RETURN_CODE -ne 0 ]; then
|
|
echo ""
|
|
exit $RETURN_CODE
|
|
fi
|
|
|
|
# Move converted files into /safezone
|
|
/bin/mv /tmp/safe-output.pdf /safezone
|
|
/bin/mv /tmp/safe-output-compressed.pdf /safezone
|