Mise à jour des exclusions
This commit is contained in:
parent
1dd25c1027
commit
50e6e46787
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -38,7 +38,7 @@ cat <<DELIM
|
|||
<html lang=fr>
|
||||
<head>
|
||||
<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">
|
||||
<link rel="stylesheet" type="text/css" href="/.assets/default.css">
|
||||
</head>
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue