add cleanup

This commit is contained in:
histausse 2021-10-27 23:13:11 +02:00
parent 8221e5a533
commit ee294166fd
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -14,3 +14,4 @@ TESS_LANG='fra+eng+osd'
file='/tmp/img_'`head --bytes=20 /dev/urandom | md5sum | head --bytes=20`'.png' file='/tmp/img_'`head --bytes=20 /dev/urandom | md5sum | head --bytes=20`'.png'
/sbin/spectacle --region --background --nonotify --output "$file" /sbin/spectacle --region --background --nonotify --output "$file"
/sbin/tesseract "$file" - -l "$TESS_LANG" | /sbin/xclip -in -selection clipboard /sbin/tesseract "$file" - -l "$TESS_LANG" | /sbin/xclip -in -selection clipboard
rm "$file"