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

13 lines
165 B
Bash
Executable File

#!/usr/bin/env bash
# Get Anki review status from exit code
num_reviews="$(cat /tmp/anki-reviews)"
if [ "$num_reviews" -ge "400" ]
then
exit 0
else
exit 1
fi