From 5e33b466a2eee1d9bb4f7b3c213e7825a763b8bd Mon Sep 17 00:00:00 2001 From: WovenCoast Date: Sun, 24 Jul 2022 12:50:55 +0500 Subject: [PATCH] small fix to use absolute paths --- prayertime.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prayertime.sh b/prayertime.sh index 2799a9a..dcb09d8 100644 --- a/prayertime.sh +++ b/prayertime.sh @@ -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..." @@ -91,4 +92,4 @@ elif [[ $(convertPTToESec $today_Isha) -ge $NOW ]]; then echo "Isha $(convertPTToHuman $today_Isha)" elif [[ $(convertPTToESecTomorrow $tomorrow_Fajr) -ge $NOW ]]; then echo "Fajr $(convertPTToHuman $tomorrow_Fajr)" -fi \ No newline at end of file +fi