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