dots/.bin/get-anki-reviews-status

13 lines
165 B
Plaintext
Raw Permalink Normal View History

2022-05-11 12:31:24 +02:00
#!/usr/bin/env bash
2022-05-11 12:34:22 +02:00
# Get Anki review status from exit code
2022-05-11 12:31:24 +02:00
num_reviews="$(cat /tmp/anki-reviews)"
if [ "$num_reviews" -ge "400" ]
then
exit 0
else
exit 1
fi