Skip to content

Commit 5783523

Browse files
jaklandehesa
authored andcommitted
Update macOCR command
1 parent b6d33c8 commit 5783523

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

commands/productivity/macocr/macocr-run-ocr.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/bin/bash
22

3-
# Dependencies:
4-
# macOCR: https://github.com/schappim/macOCR
5-
6-
# Recommended installation:
7-
# brew install schappim/ocr/ocr
3+
# Dependency: This script requires `macOCR` to be installed: https://github.com/schappim/macOCR
4+
# Install via homebrew: `brew install schappim/ocr/ocr`
85

96
# Required parameters:
107
# @raycast.schemaVersion 1
@@ -20,5 +17,10 @@
2017
# @raycast.author Jakub Lanski
2118
# @raycast.authorURL https://github.com/jaklan
2219

20+
if ! command -v ocr &> /dev/null; then
21+
echo "macOCR has to be installed (https://github.com/schappim/macOCR)";
22+
exit 1;
23+
fi
24+
2325
result=$(ocr -l ${1:-"en-US"})
2426
echo $result | tee >(pbcopy)

0 commit comments

Comments
 (0)