Ensure to remove temp files.
This commit is contained in:
parent
27f637f39f
commit
4e8e5f5805
|
@ -21,10 +21,11 @@ if [ -f "${WATER_PDF_FILE}" ]; then
|
|||
command pdftk "${WATER_PDF_FILE}" output "${UNCOMPRESS_PDF_FILE}" uncompress
|
||||
|
||||
sed -e "s/${OLD_WATER}/${NEW_WATER}/g" "${UNCOMPRESS_PDF_FILE}" >"${UNWATER_PDF_FILE}"
|
||||
#sed -e "s/UNIVERSITE DE RENNES 1/TEST/g" <"${WATER_PDF_FILE}" >"${UNWATER_PDF_FILE}"
|
||||
|
||||
command pdftk "${UNWATER_PDF_FILE}" output "${WATER_PDF_FILE}" compress
|
||||
|
||||
rm -f "${UNCOMPRESS_PDF_FILE}" "${UNWATER_PDF_FILE}"
|
||||
|
||||
exit 0
|
||||
else
|
||||
printf '%s\n' "Error with the first arg : ${1}"
|
||||
|
|
Loading…
Reference in New Issue