Skip to content

Commit

Permalink
Update scantofile-0.2.4-1.sh
Browse files Browse the repository at this point in the history
Minor changes for consistency
  • Loading branch information
PhilippMundhenk authored Sep 16, 2024
1 parent 35c2aeb commit 2172319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/scantofile-0.2.4-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
echo "converting to PDF for $date..."
gm convert ${gm_opts[@]} "$filename_base"*.pnm "/scans/${date}.pdf"
/opt/brother/scanner/brscan-skey/script/trigger_inotify.sh "${SSH_USER}" "${SSH_PASSWORD}" "${SSH_HOST}" "${SSH_PATH}" "${date}.pdf"
/opt/brother/scanner/brscan-skey/script/trigger_telegram.sh "$date.pdf (front) scanned"
/opt/brother/scanner/brscan-skey/script/trigger_telegram.sh "${date}.pdf (front) scanned"

echo "cleaning up for $date..."
cd /scans || exit
Expand All @@ -66,7 +66,7 @@
(
curl -F "userfile=@/scans/$date.pdf" -H "Expect:" -o /scans/"$date"-ocr.pdf "${OCR_SERVER}":"${OCR_PORT}"/"${OCR_PATH}"
/opt/brother/scanner/brscan-skey/script/trigger_inotify.sh "${SSH_USER}" "${SSH_PASSWORD}" "${SSH_HOST}" "${SSH_PATH}" "${date}-ocr.pdf"
/opt/brother/scanner/brscan-skey/script/trigger_telegram.sh "$date-ocr.pdf (front) OCR finished"
/opt/brother/scanner/brscan-skey/script/trigger_telegram.sh "${date}-ocr.pdf (front) OCR finished"
/opt/brother/scanner/brscan-skey/script/sendtoftps.sh \
"${FTP_USER}" \
"${FTP_PASSWORD}" \
Expand Down

0 comments on commit 2172319

Please sign in to comment.