fix serve.sh

This commit is contained in:
Andreas Hubel 2023-04-08 01:18:50 +02:00
parent dd9e7ba27c
commit 0378cdbee6

View file

@ -4,7 +4,7 @@ php_bin=""
host=localhost host=localhost
port=8000 port=8000
for try_bin in /usr/bin/php7.4 php7 php for try_bin in php74 php7.4 php7 php
do do
php_bin=$(command -v $try_bin) php_bin=$(command -v $try_bin)
if [ -n "$php_bin" ] if [ -n "$php_bin" ]
@ -27,7 +27,7 @@ fi
# check if we should update schedules, upcoming, etc. # check if we should update schedules, upcoming, etc.
if [ -z "$(find "configs/upcoming.json" -newermt "8 hours ago")" ]; then if [ -z "$(find "configs/upcoming.json" -newermt "8 hours ago")" ]; then
echo "Updating schedules…\n" echo "Updating schedules…\n"
./download.sh $php_bin -d short_open_tag=true index.php download
echo echo
fi fi