Mise à jour des exclusions

This commit is contained in:
Breizh 2024-04-11 15:23:25 +02:00
parent 1dd25c1027
commit 50e6e46787
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ do
full=$(realpath "$i") full=$(realpath "$i")
# Exclusion(s) # Exclusion(s)
if [[ "$full" =~ ^${root}/p || -h "${i::-1}" ]] if [[ "$full" =~ ^${root}/p$ || -h "${i::-1}" ]]
then then
continue continue
fi fi

View File

@ -38,7 +38,7 @@ cat <<DELIM
<html lang=fr> <html lang=fr>
<head> <head>
<title>Index de ${1:-fichiers.breizh.pm}</title> <title>Index de ${1:-fichiers.breizh.pm}</title>
<meta charset="utf-8"/> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/.assets/default.css"> <link rel="stylesheet" type="text/css" href="/.assets/default.css">
</head> </head>
@ -112,7 +112,7 @@ do
# Exclusion(s), relative(s) ou absolue(s) # Exclusion(s), relative(s) ou absolue(s)
if [[ "$i" == "index.html" ]] \ if [[ "$i" == "index.html" ]] \
|| [[ "$(realpath "$i")" =~ ^$root/p ]] \ || [[ "$(realpath "$i")" =~ ^$root/p$ ]] \
|| [[ "$(realpath "$i")" =~ ^$root/robots.txt ]] || [[ "$(realpath "$i")" =~ ^$root/robots.txt ]]
then then
continue continue
@ -137,14 +137,14 @@ do
# Exclusion(s), relative(s) ou absolue(s) # Exclusion(s), relative(s) ou absolue(s)
if [[ "$i" == "index.html" ]] \ if [[ "$i" == "index.html" ]] \
|| [[ "$(realpath "$i")" =~ ^$root/p ]] \ || [[ "$(realpath "$i")" =~ ^$root/p$ ]] \
|| [[ "$(realpath "$i")" =~ ^$root/robots.txt ]] || [[ "$(realpath "$i")" =~ ^$root/robots.txt ]]
then then
continue continue
fi fi
# Ne pas précharger Musique/Vidéos qui est trop volumineux # 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 then
preload=none preload=none
fi fi