dotfiles/.bin/documents-import

13 lines
269 B
Plaintext
Raw Normal View History

2022-12-09 07:54:57 +01:00
#/bin/sh -xe
. ${HOME}/.bin/_config
2022-12-09 07:54:57 +01:00
mkdir -p ${PIMDIR}/documents/_incoming
mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/ 2>/dev/null
if [ $? -ne 0 ]
then
echo "Nothing to import..."
exit 0
fi
${HOME}/.bin/documents-update
2023-01-13 13:46:11 +01:00
${HOME}/.bin/documents-ocr