Skip to content

Commit

Permalink
Fixing telegram integration in detectionOn.sh (EliasKotlyar#678)
Browse files Browse the repository at this point in the history
* Fixing telegram integration in detectionOn.sh

* Update detectionOn.sh

use /tmp for temporary image
  • Loading branch information
gergles authored and jmtatsch committed Sep 5, 2018
1 parent 956914d commit 6cb8301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firmware_mod/scripts/detectionOn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ if [ "$send_telegram" = true ]; then
if [ "$save_snapshot" = true ] ; then
/system/sdcard/bin/telegram p "$save_dir/$filename"
else
/system/sdcard/bin/getimage > "telegram_image.jpg"
+ /system/sdcard/bin/telegram p "telegram_image.jpg"
+ rm "telegram_image.jpg"
/system/sdcard/bin/getimage > "/tmp/telegram_image.jpg"
/system/sdcard/bin/telegram p "/tmp/telegram_image.jpg"
rm "/tmp/telegram_image.jpg"
fi
fi

Expand Down

0 comments on commit 6cb8301

Please sign in to comment.