diff --git a/publish.sh b/publish.sh index 301de8051c3ae9846938e196b7b3f513e5a19ee8..a6201b0a9d3848d44c0aba2fceecbf770fdc34d8 100755 --- a/publish.sh +++ b/publish.sh @@ -34,8 +34,8 @@ sed -i -e "s/##nbrPieces/${plays_done}/g" site/*html realdate=$(grep -P 'Last updated on ' site/en.html | grep -Po '[0-9: -]+ UTC') echo "$realdate\n" >> site/log.txt #2021-09-27 09:37:07 UTC -perl -p -i -e "s/Last updated on /Last updated on $(date +'%Y-%m-%d %k:%M:%S')/" site/read/en.html -perl -p -i -e "s/Last updated on /Mis à jour le $(date +'%Y-%m-%d %k:%M:%S')/" site/read/index.html +perl -p -i -e "s/Last updated on .+/Last updated on $(date +'%Y-%m-%d %k:%M:%S')/" site/read/en.html +perl -p -i -e "s/Last updated on .+/Mis à jour le $(date +'%Y-%m-%d %k:%M:%S')/" site/read/index.html # copy to public repo ==========================================================