small fix to use absolute paths

This commit is contained in:
WovenCoast 2022-07-24 12:50:55 +05:00
parent 9a5cf10b6e
commit 5e33b466a2

View File

@ -40,6 +40,7 @@ if [[ "$1" == '--' ]]; then shift; fi
NOW=$(date +%s)
DAY_OF_YEAR=$(($(date -d "@$NOW" +%j) - 1))
PRAYERTIMES_CSV=$(realpath $PRAYERTIMES_CSV)
if [[ ! -s $PRAYERTIMES_CSV ]]; then
echo "Prayertimes db is missing"
echo "Attempting to fetch it from github..."