From 9395517a775b147c587a8ea70e16cbc39f8001f8 Mon Sep 17 00:00:00 2001 From: pruizf <pabloruizfabo@gmail.com> Date: Mon, 27 Sep 2021 12:19:27 +0200 Subject: [PATCH] [pub] footer update --- publish.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/publish.sh b/publish.sh index 3fc431b..10d125a 100755 --- a/publish.sh +++ b/publish.sh @@ -33,3 +33,9 @@ sed -i -e "s/##nbrPieces/${plays_done}/g" site/*html # copy to public repo ========================================================== cp -r site/*html public cp -r site/{img,styles,docs,read} public/. + +# footer date +realdate=$(grep -P 'Last updated on ' site/en.html | grep -Po '[0-9: -]+ UTC') +#2021-09-27 09:37:07 UTC +perl -p -i -e "s/Last updated on /Last updated on ${realdate}/" site/read/en.html +perl -p -i -e "s/Last updated on /Mis à jour le ${realdate}/" site/read/index.html \ No newline at end of file -- GitLab