diff options
Diffstat (limited to 'dot_local/bin/executable_ocr')
| -rw-r--r-- | dot_local/bin/executable_ocr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dot_local/bin/executable_ocr b/dot_local/bin/executable_ocr index 6f6191f..5ce8b08 100644 --- a/dot_local/bin/executable_ocr +++ b/dot_local/bin/executable_ocr @@ -15,7 +15,10 @@ set -eu lang="${TESSERACT_LANG:-eng+por}" if [ "${1:-}" ]; then - [ -r "$1" ] || { notify-send -u critical "📋 OCR" "Cannot read: $1"; exit 1; } + [ -r "$1" ] || { + notify-send -u critical "📋 OCR" "Cannot read: $1" + exit 1 + } text="$(tesseract "$1" - -l "$lang" 2>/dev/null || true)" else region="$(slurp 2>/dev/null)" || exit 0 |
