small fix to use absolute paths
This commit is contained in:
parent
9a5cf10b6e
commit
5e33b466a2
@ -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
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user