#!/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