Correction de la gestion des liens symboliques

This commit is contained in:
Breizh 2022-10-07 12:52:28 +02:00
parent f75c4325a2
commit 601f77f9df

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash -x
# Configuration # Configuration
generator=/home/files/scripts/generator.sh generator=/home/files/scripts/generator.sh
@ -19,7 +19,7 @@ do
full=$(realpath "$i") full=$(realpath "$i")
# Exclusion(s) # Exclusion(s)
if [[ "$full" =~ ^${root}/p || -L "$i" ]] if [[ "$full" =~ ^${root}/p || -h "${i::-1}" ]]
then then
continue continue
fi fi