From 50e6e46787ca37d2bc546d9e3664f1cd1eb4ca9d Mon Sep 17 00:00:00 2001 From: Breizh Date: Thu, 11 Apr 2024 15:23:25 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20exclusions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.sh | 2 +- generator.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controller.sh b/controller.sh index fe06e9d..04f8f47 100755 --- a/controller.sh +++ b/controller.sh @@ -19,7 +19,7 @@ do full=$(realpath "$i") # Exclusion(s) - if [[ "$full" =~ ^${root}/p || -h "${i::-1}" ]] + if [[ "$full" =~ ^${root}/p$ || -h "${i::-1}" ]] then continue fi diff --git a/generator.sh b/generator.sh index 70a710a..6a36372 100755 --- a/generator.sh +++ b/generator.sh @@ -38,7 +38,7 @@ cat < Index de ${1:-fichiers.breizh.pm} - + @@ -112,7 +112,7 @@ do # Exclusion(s), relative(s) ou absolue(s) if [[ "$i" == "index.html" ]] \ - || [[ "$(realpath "$i")" =~ ^$root/p ]] \ + || [[ "$(realpath "$i")" =~ ^$root/p$ ]] \ || [[ "$(realpath "$i")" =~ ^$root/robots.txt ]] then continue @@ -137,14 +137,14 @@ do # Exclusion(s), relative(s) ou absolue(s) if [[ "$i" == "index.html" ]] \ - || [[ "$(realpath "$i")" =~ ^$root/p ]] \ + || [[ "$(realpath "$i")" =~ ^$root/p$ ]] \ || [[ "$(realpath "$i")" =~ ^$root/robots.txt ]] then continue fi # Ne pas précharger Musique/Vidéos qui est trop volumineux - if [[ "$(realpath "$i")" =~ ^$root/Musique/Vidéos ]] + if [[ "$(realpath "$i")" =~ ^$root/Musique/Vidéos || "$(realpath "$i")" =~ ^$root/Musique.opus/Vidéos ]] then preload=none fi