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
1 changed files with 2 additions and 2 deletions

View File

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